so

Open file depending on their extension
README

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.

Install
Published
26 Nov 2019
Sources
so-0.0.1.tbz
sha256=e0b738a1c251d6104eff246d4acac6edc1a3c868f77d810ae91347ebffaa028c
sha512=0e9d3ea93a3b673589e7d2a0aa34cec613fa66bd35a01b3c3fe539eccdb555ac257795690b87ff5dcd9b79c9274f272dcc14fcf2820b287cb72a2c6c83ae848a
Dependencies
bisect_ppx
>= "1.4" & < "2.6.0"
dune
>= "2.0"
ocaml
>= "4.05"
Reverse Dependencies