update readme
This commit is contained in:
parent
7fedc7a95d
commit
df6c2ed20a
21
README.md
21
README.md
|
@ -9,26 +9,7 @@ By default nenu takes input from stdin and display it to the user in a vertical
|
|||
list. The user then types which reduces the list to those that match. Once the
|
||||
user presses return nenu exits and prints what was typed to stdout.
|
||||
|
||||
The last non-flag argument given is used as the header.
|
||||
Avaliable flags are -a, -c, -n and -e.
|
||||
|
||||
-a: exit as soon as there is only one match.
|
||||
|
||||
-c: on exit return the match at the begining of the list. If there is no match
|
||||
nenu returns the user input.
|
||||
|
||||
-n: no input is taken and the -c flag is set. This is useful if you want to use
|
||||
nenu to show the user something but take no input.
|
||||
|
||||
-e: takes no input from stdin, nenu become a text input box.
|
||||
|
||||
-p x,y: opens the window at x,y rather than mouse coords.
|
||||
|
||||
-ap: don't shift the window so it stays inside the screen.
|
||||
|
||||
Putting that togther, try:
|
||||
|
||||
# ls | ./nenu "pick a file: " -a -c
|
||||
Check out the man page.
|
||||
|
||||
Look in nexec, ntime and nwindow for examples of use. These are useable scripts
|
||||
in their own right.
|
||||
|
|
2
nenu.1
2
nenu.1
|
@ -78,6 +78,8 @@ Move cursor to end.
|
|||
.TP
|
||||
.B Tab
|
||||
Match text as far forward as can without reducing valid options.
|
||||
.SH RETURNS
|
||||
Returns 1 if the user types escape, else 0.
|
||||
.SH BUGS
|
||||
Probably. When you find them tell me.
|
||||
.SH AUTHOR
|
||||
|
|
Reference in New Issue