/gof

Primary LanguageGo

gof

Go Fuzzy

Installation

$ go get github.com/mattn/gof

Feature

  • Faster and startup
  • Working on windows

Usage

  • Glob files and edit the selected file with vim.
$ vim `gof`
  • Run gof and type CTRL-O, then start to edit with editor.
$ gof
  • Read from stdin
$ find /tmp | gof

Key Assign

Key Description
CTRL-K,ARROW-UP Move-up line
CTRL-J,ARROW-DOWN Move-down line
CTRL-A,HOME Go to head of prompt
CTRL-E,END Go to trail of prompt
ARROW-LEFT Move-left cursor
ARROW-RIGHT Move-right cursor
CTRL-O Edit file selected
CTRL-I Toggle view header/trailing of lines
CTRL-L Redraw
CTRL-U Clear prompt
CTRL-W Remove backward word
BS Remove backward character
DEL Delete character on the cursor
CTRL-Z Toggle selection
Enter Decide
CTRL-D,CTRL-C,ESC Cancel

Options

Option Description
-c Cat the selected file
-e Edit the selected file
- Remove the selected file
-l Launcher mode
-x Exit code for cancel (default: 1)
-d [path] Speciry root directory

Launcher Mode

Put ~/.gof-launcher

[name]	[command]

name and command should be separated by TAB. gof -l launch commands for selected name. Below is a my .gof-launcher file.

Vim	gvim
Emacs	emacs
GIMP	gimp

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)