An xdg-open alternative that's easier to configure.
Find a file
2022-02-20 22:47:08 -05:00
src updated description to better reflect what open is 2022-02-20 22:47:08 -05:00
.gitignore version bump 2021-06-16 21:52:22 -04:00
Cargo.toml fixed a panic when opening a file with an unconfigured extension 2021-11-25 12:53:36 -05:00
README.md updated description to better reflect what open is 2022-02-20 22:47:08 -05:00

open

A Rust reimplementation of xdg-open command. It's written to be quickly and easily customizable, features separate local and global configs, and a zero-operand command allowing the user to specify how files should be opened differently, and for opening a project, etc.

For example, for

[open]
# zero-operand command
command = atom .
# use $EDITOR to edit files without specified commands?
use_editor = true

[.md]
command = typora

[.rs]
command = atom

[filename:.gitignore]
command = vim
shell = true

I can use open to open the directory in Atom, or I could use open src/main.rs to open main.rs in Atom, and I can specify these on a per-project basis.

For directories with a local config, any missing values will be filled in by the global config (~/.config/open.conf), which means local configs can be shorter.