Skip to content

Command line tool: launch various applications depending on the file type

Notifications You must be signed in to change notification settings

rohinomiya/edit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

edit

Description

Command line tool: launch various applications depending on the file type.

Usage

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.

Install

To install, use go get:

$ go get -d github.com/rohinomiya/edit

Configuration

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"
        }
    ]
}

Todo

  • Error handling
  • Refactoring

Contribution

  1. Fork (https://github.com/rohinomiya/edit/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

rohinomiya

About

Command line tool: launch various applications depending on the file type

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages