X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=selector.1;h=7422ab44ec150f9e0b42ee8eb041a9caa87edd58;hb=28ce8e4f521dc01987da20eba019961d866b5c1c;hp=903c428696fd241fa1ef9675eaafb36278d1e0f9;hpb=6bfacc5594cad8647f454cc3aab15068663d7bbb;p=selector.git diff --git a/selector.1 b/selector.1 index 903c428..7422ab4 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 sequence +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 -d -i -b -v <(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