X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=inline;f=selector.1;h=58b675784999c1f423ed03240453a2f246f96272;hb=9ac8b5e29aa7d08129e37cd21fea844ba916f64d;hp=d67955d553ce49b52132f9ccf0c4896346502c4d;hpb=d21dcab62f2e81f22c0c7c721fdffbcf244ac349;p=selector.git diff --git a/selector.1 b/selector.1 index d67955d..58b6757 100644 --- a/selector.1 +++ b/selector.1 @@ -7,8 +7,12 @@ selector - A simple command line for dynamic pattern selection .SH "DESCRIPTION" .PP \fBselector\fP is a command line dynamic string selection. As you type -a list of strings separated by ';', the display is updated in real -time to show only the lines containing all the said strings. +a list of strings separated by ';' or a regexp, the display is updated +in real time to show only the lines containing all the said strings, +or matching the regexp. + +The ^R key switches between the standard multi-substring mode and the +regexp mode. The main usage of selector is as an efficient search in the shell command history. With the correct option, it will inject the selected @@ -24,28 +28,39 @@ PageUp and PageDown move by ten lines. The Home and End key move to the top and the bottom of the list respectively. The return key selects the current line and exits. -You can cancel the selection either by interrupting the command with -^C or by typing ^G. +The shortcuts ^A, ^E, ^U, and ^K do somehow what they do in readline, +and you can cancel the selection by either interrupting the command +with ^C or by typing ^G. .SH "OPTIONS" .IP "\fB-h\fP" 10 display help and exits -.IP "\fB-v\fP" 10 -inject the selected line into the tty input buffer .IP "\fB-m\fP" 10 force the monochrome mode .IP "\fB-i\fP" 10 inverse the order of the lines +.IP "\fB-b\fP" 10 +remove the numeric prefix from bash history .IP "\fB-z\fP" 10 remove the time prefix from zsh history +.IP "\fB-d\fP" 10 +remove duplicated lines +.IP "\fB-e\fP" 10 +start with the regexp mode activated +.IP "\fB-a\fP" 10 +make the matching case sensitive +.IP "\fB-t