X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=selector.cc;h=cd60eea2c9d22ae413ffcac66411def6edc7fcd4;hb=45fd07db2a2574d9d1e24a842ea0dc546fd27776;hp=0cd620a44e484104bd26031f38c9a5ecc642efb1;hpb=2cfbebb3bfb34779588bdfbce7b56ede149610cb;p=selector.git diff --git a/selector.cc b/selector.cc index 0cd620a..cd60eea 100644 --- a/selector.cc +++ b/selector.cc @@ -23,7 +23,7 @@ */ // To use it as a super-history-search for bash: -// alias h='selector -d -i -b -v -f <(history)' +// selector -q -b -i -d -v -w -l 10000 <(history) #include #include @@ -51,7 +51,8 @@ char label_separator = '\0'; int output_to_vt_buffer = 0; int add_control_qs = 0; int with_colors = 1; -int zsh_history = 0, bash_history = 0; +int zsh_history = 0; +int bash_history = 0; int inverse_order = 0; int remove_duplicates = 0; int use_regexp = 0; @@ -776,6 +777,7 @@ int main(int argc, char **argv) { << endl << " -h show this help" << endl << " -v inject the selected line in the tty" << endl + << " -w quotes control characters with ^Qs" << endl << " -d remove duplicated lines" << endl << " -b remove the bash history line prefix" << endl << " -z remove the zsh history line prefix" << endl