A command line tool written in OCaml to quickly open file depending on their extension
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zapashcanon 113bc4d094
first release
5 years ago
src first release 5 years ago
test first release 5 years ago
.build.yml first release 5 years ago
.gitignore first commit 5 years ago
CHANGES.md first release 5 years ago
LICENSE.md first commit 5 years ago
README.md add build manifest 5 years ago
dune-project first release 5 years ago
so.opam first release 5 years ago

README.md

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.