No description or website provided.
Clone or download
Latest commit 5fe472f Mar 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fastwalk use fastwalk Aug 5, 2017
misc/vim code cleanup Apr 17, 2015
README.md update README.md Feb 10, 2017
dot.gof-launcher First import Dec 9, 2013
gof.go do not check nil Mar 29, 2018
tty_bsd.go Add tty_bsd.go for Mac OS X/FreeBSD Dec 10, 2013
tty_linux.go Add tty_bsd.go for Mac OS X/FreeBSD Dec 10, 2013
tty_windows.go First import Dec 9, 2013
wercker.yml add wercker.yml Feb 9, 2017

README.md

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] Specify 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)