package so

Not available on OCaml 5.5
  1. Overview
  2. Docs
Open file depending on their extension

Install

dune-project
 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.

Added to opam-repository:

README

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.

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

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building so with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.0.1 (this version) good n/a n/a n/a n/a
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure