Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geier/choose
make choices on the command line
https://github.com/geier/choose
Last synced: 3 months ago
JSON representation
make choices on the command line
- Host: GitHub
- URL: https://github.com/geier/choose
- Owner: geier
- License: mit
- Created: 2013-03-24T18:36:52.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-01-16T13:47:09.000Z (about 8 years ago)
- Last Synced: 2024-11-15T21:06:02.571Z (3 months ago)
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 89
- Watchers: 4
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
choose - make choices on the command line
=========================================reads lines from stdin, lets user choose one line in an urwid (ncurses like)
interface, then prints that line to stdout and exits. Input will be aligned to
tabs(`\t`). After reading from stdin, in attaches itself directly to the
currently active tty, thus it can work with piped input:
get_data.sh | **choose** | other_script.shChoose should run on all *NIXes, but might not work in non utf-8 locales.
An example of piping the output of [pc_query](http://github.com/geier/pycarddav) -t *searchstring* into *choose*:
![](./choose.png "example of choose in usage")