package so

  1. Overview
  2. Docs
Open file depending on their extension

Install

Dune Dependency

Authors

Maintainers

Sources

so-0.0.1.tbz
sha256=e0b738a1c251d6104eff246d4acac6edc1a3c868f77d810ae91347ebffaa028c
sha512=0e9d3ea93a3b673589e7d2a0aa34cec613fa66bd35a01b3c3fe539eccdb555ac257795690b87ff5dcd9b79c9274f272dcc14fcf2820b287cb72a2c6c83ae848a

Description

Command line tool to quickly open file depending on their extension.

Published: 26 Nov 2019

README

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'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.

Dependencies (4)

  1. ocaml-xdg-basedir >= "0.0.3"
  2. bisect_ppx >= "1.4" & < "2.6.0"
  3. dune >= "2.0"
  4. ocaml >= "4.05"

Dev Dependencies

None

Used by

None

Conflicts

None