fixed conflict
This commit is contained in:
commit
e1bbcf3c3f
2 changed files with 25 additions and 1 deletions
25
README.md
Normal file
25
README.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# open
|
||||
|
||||
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.
|
||||
|
||||
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.
|
|
@ -105,7 +105,6 @@ FLAGS:
|
|||
let i_exe = config.get(ext, "command");
|
||||
if i_exe.is_none() {
|
||||
match ext {
|
||||
"open" => println!("open: no zero-operand command specified."),
|
||||
"dir" => println!("open: no command specified for directories."),
|
||||
_ => println!("open: no command specified for \"{}\" files.", ext)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue