https://github.com/mattn/cho
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattn/cho
- Owner: mattn
- Created: 2016-05-03T07:30:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-22T13:43:05.000Z (over 1 year ago)
- Last Synced: 2025-04-14T22:54:14.493Z (9 months ago)
- Language: Go
- Size: 85.9 KB
- Stars: 80
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cho
choice!

## 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](https://github.com/peco/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
|Key |Behavior |
|------|--------------------|
|CTRL-N|Next |
|CTRL-P|Previous |
|Enter |Decide |
|CTLR-A|Left side on prompt |
|CTLR-E|Right side on prompt|
|CTRL-V|Select in multi mode|
|CTRL-U|Clear prompt |
|ESC |Cancel |
## License
MIT
## Author
Yasuhiro Matsumoto (a.k.a mattn)