Home

Awesome

cho

choice!

cho

Why cho?

Why not choice? Because Windows already have choice command.

Why not choic? Too long

Why not choi? Still long

Then, cho? Sound good to me

Usage

Just like peco

Installation

$ go get github.com/mattn/cho

Usecase

Linux

FOO=`ls | cho`

Windows

for /f "delims=;" %%i in ('ls ^| cho') do set FOO=%%i

Keys

KeyBehavior
CTRL-NNext
CTRL-PPrevious
EnterDecide
CTLR-ALeft side on prompt
CTLR-ERight side on prompt
CTRL-VSelect in multi mode
CTRL-UClear prompt
ESCCancel

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)