package so

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

SO builds.sr.ht status

SO (Simple Open) is a small command line tool to quickly open file depending on their extension.

Usage

You should have a configuration file in ${XDG_CONFIG_HOME}/so/config. It maps extensions to programs and should look like this:

mpv : mp4 avi
firefox : html
evince : pdf
eog : jpg png gif tif

There's a default fallback set to xdg-open.

Then it's as simple as:

so ~/img/hello.jpg

Build

opam update
opam install dune ocaml-xdg-basedir
dune build @all

Install

dune install

License

See LICENSE.

OCaml

Innovation. Community. Security.