open/README.md

26 lines
788 B
Markdown
Raw Normal View History

2021-06-23 16:33:25 -04:00
# open
2021-07-04 14:27:16 -04:00
A Rust implementation of MacOS's `open` command (`xdg-open`). 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.
2021-06-23 16:33:25 -04:00
For example, for
```ini
[open]
# zero-operand command
command = atom .
[.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.