X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=inline;f=selector.1;h=d608ddf775991d2767af7f742bdff6c8fe99c5af;hb=6a28bf52a5a8975bef84624d400ae9e98147f793;hp=903c428696fd241fa1ef9675eaafb36278d1e0f9;hpb=6bfacc5594cad8647f454cc3aab15068663d7bbb;p=selector.git diff --git a/selector.1 b/selector.1 index 903c428..d608ddf 100644 --- a/selector.1 +++ b/selector.1 @@ -56,6 +56,8 @@ remove duplicated lines start with the regexp mode activated .IP "\fB-a\fP" 10 make the matching case sensitive +.IP "\fB-q\fP" 10 +make a flash instead of a beep when there is an edition error .IP "\fB--\fP" 10 state that all following arguments are filenames .IP "\fB-t \fP" 10 @@ -79,6 +81,28 @@ To use selector to search into your bash history, you can use .B selector -d -i -b -v <(history) +.SH "INTERACTION WITH READLINE" + +For better efficiency, you can associate selector to a key in the +shell through the use of the readline configuration file. To do so, +you have first to pick a key and check the character sequences +associated to it. + +You can do that by typing at the console prompt Control-q followed by +the key you want to use. For instance, if you want to use Alt-r, you +may get ^[r. Then, you have to add in the readline configuration file +~/.inputrc the following: + +"^[r": "^A^K selector -q -b -i -d -v -l 10000 <(history)^M" + +Note that you have to put the actual control characters in the +configuration file, not a '^' followed by a character. To do so with +Emacs for instance, you have to use the C-q key followed by another +key: C-q C-a inserts "^A", C-q C-[ inserts "^[", etc. + +The control characters in this line are here to first erase the +current line content and to simulate the enter key. + .SH "BUGS" There are modeline display problems if the pattern is too