Fixed io-ii
[iomenu.git] / README
blob10d1db275d05da9befa30f53e6c877030c77775b
1 iomenu
3  .
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.
21 Getting started
22 --------------------------------------------------------------------------------
24         You can install iomenu by running:
25         
26         """
27         make install
28         """
29         
30         You can optionnaly set a "PREFIX" variable to set the path to
31         install to:
32         
33         """
34         make PREFIX="$HOME/bin" install
35         """
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".
43 Examples
44 --------------------------------------------------------------------------------
47 Open a bookmark from a list in a text file
49         """
50         iomenu < bookmarks-urls.txt | xargs firefox
51         """
54 Go to a subdirectory
56         """
57         cd "$(find . -type d | iomenu)"
58         """
61 Edit a file located in ~
63         """
64         $EDITOR "$(find -type f | iomenu)"
65         """
68 Play an audio file
70         """
71         mplayer "$(find ~/Music | iomenu)"
72         """
75 Select a background job to attach to
77         """
78         fg "%$(jobs | iomenu | cut -c 2)"
79         """
82 Filter "ps" output and print a process ID
84         """
85         { printf '#'; ps ax; } | iomenu -s '#' | sed -r 's/ *([0-9]*).*/\1/'
86         """
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