https://github.com/ryochack/openby
https://github.com/ryochack/openby
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryochack/openby
- Owner: ryochack
- License: mit
- Created: 2017-06-18T15:18:23.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-06T02:15:49.000Z (almost 9 years ago)
- Last Synced: 2025-12-31T17:52:27.640Z (6 months ago)
- Language: Rust
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openby
# What is this?
`openby` is generic open applicaiton command. (like `xdg-open`)
`openby` has default application each file extensions.
# Sample
```
$ openby rust.pdf
-> open rust.pdf by evince.
$ openby movie.mp4
-> open movie.mp4 by vlc.
```
# TOML Configuration
```toml
version = 0.0
[[tools]]
command = "apvlv"
extentions = [ "pdf" ]
[[tools]]
command = "mirage"
extentions = [ "jpg", "png", "gif" ]
[[tools]]
command = "vlc"
extentions = [ "mp4", "mov", "avi" ]
[[tools]]
command = "vim -R"
extentions = [ "conf" ]
```
# Implementation Process
1. import toml crate
2. design toml format
3. read toml file
4. execute command
5. write toml config file