zapashcanon 28e892705a
Some checks failed
build / build (push) Failing after 1m5s
add CI
2025-01-20 04:05:53 +01:00
2025-01-20 04:05:53 +01:00
2025-01-03 19:56:03 +01:00
2019-11-18 02:24:11 +01:00
2024-12-28 18:31:40 +01:00
2024-12-28 18:31:40 +01:00
2024-12-28 18:31:40 +01:00
2019-11-18 02:24:11 +01:00
2024-12-28 18:31:40 +01:00
2024-12-28 18:31:40 +01:00

SO

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 is a default fallback set to xdg-open.

Then it is as simple as:

$ so ~/img/hello.jpg

Build

$ opam update
$ opam install dune prelude directories
$ dune build @install

Install

dune install

License

See LICENSE.

Description
A command line tool written in OCaml to quickly open file depending on their extension
Readme
Languages
OCaml 78.7%
Dune 21.3%