4 , ,--. --.-. ,--. ---. , ,
5 | | | | | | |--' | | | |
6 ' `--' ' ' ' `--' ' ' `--'
8 --------------------------------------------------------------------------------
9 Filter lines from stdin with an interactive menu
12 iomenu is a terminal tool to interactively select lines from stdin, and
13 print them out to the standard output.
15 You can use scripts made for dmenu [1], as iomenu mostly the same way.
17 Thanks to the authors of dmenu [1], sandy [2], vis-menu[3], pep[4], ...
18 that taught me C by writing some.
22 --------------------------------------------------------------------------------
24 You can install iomenu by running:
30 You can optionnaly set a "PREFIX" variable to set the path to
34 make PREFIX="$HOME/bin" install
37 All you need to build it is a C compiler: It is plain C89 source
38 code without external dependencies.
40 All usage details are written in the man page, "iomenu.1".
44 --------------------------------------------------------------------------------
47 Open a bookmark from a list in a text file
50 iomenu < bookmarks-urls.txt | xargs firefox
57 cd "$(find . -type d | iomenu)"
61 Edit a file located in ~
64 $EDITOR "$(find -type f | iomenu)"
71 mplayer "$(find ~/Music | iomenu)"
75 Select a background job to attach to
78 fg "%$(jobs | iomenu | cut -c 2)"
82 Filter "ps" output and print a process ID
85 { printf '#'; ps ax; } | iomenu -s '#' | sed -r 's/ *([0-9]*).*/\1/'
89 --------------------------------------------------------------------------------
90 1 http://git.suckless.org/dmenu/tree/dmenu.c
91 2 http://git.suckless.org/sandy/tree/sandy.c
92 3 http://github.com/martanne/vis/blob/master/vis-menu.c
93 4 http://github.com/charles-l/pep/blob/master/pep.c