Command line tool: launch various applications depending on the file type.
edit.exe [Options] [Files...]
Options:
-l int
line number(Short)
-line int
line number
-noStdin
do not input from stdin.
-version
Print version information and quit.
To install, use go get
:
$ go get -d github.com/rohinomiya/edit
Edit "edit.json".
Sample:
{
"UserCommands": [
{
"FilePattern": "\\.(jpe?g|png|bmp|gif)$",
"Command": "C:\\Program Files\\FireAlpaca\\FireAlpaca15\\FireAlpaca.exe",
"LineOption": "",
"Option": ""
},
{
"FilePattern": "\\.ahk$",
"Command": "C:\\Program Files\\AutoHotkey\\SciTE\\SciTE.exe",
"LineOption": "",
"Option": ""
},
{
"FilePattern": "\\..*$",
"Command": "gvim.exe",
"LineOption": "+[num]",
"Option": "--remote-silent"
}
]
}
- Error handling
- Refactoring
- Fork (https://github.com/rohinomiya/edit/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes - Run
gofmt -s
- Create a new Pull Request