From c6f848650dccbecb05229e86c180bd7837872185 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 3 Jul 2009 08:06:33 +0200 Subject: [PATCH] Cosmetics. --- Makefile | 2 +- mkdeb.sh | 4 ++-- selector.1 | 15 ++++++++------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 7e821fa..5d1209e 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ REVISION_NUMBER=\"$(shell cat REVISION_NUMBER)\" ifeq ($(DEBUG),yes) OPTIMIZE_FLAG = -ggdb3 -DDEBUG -fno-omit-frame-pointer else - OPTIMIZE_FLAG = -ggdb3 -O3 + OPTIMIZE_FLAG = -O2 endif CFLAGS = -Wall -ansi -pedantic -DREVISION_NUMBER=$(REVISION_NUMBER) $(OPTIMIZE_FLAG) diff --git a/mkdeb.sh b/mkdeb.sh index de57519..4fd9201 100755 --- a/mkdeb.sh +++ b/mkdeb.sh @@ -59,8 +59,8 @@ Description: A command line utility for dynamic string-matching is updated in real time to show only the matching lines. The main usage of selector is as an efficient search in the shell command history. With the correct option, it will inject the selected line - into the tty input buffer, hence allowing the user to edit the line - and execute it as a standard command. + into the tty input buffer, allowing the user to edit the line and + execute it as a standard command. EOF cp ./selector ${TMP}/${BIN_PATH} diff --git a/selector.1 b/selector.1 index 7f0ce8c..fa215b0 100644 --- a/selector.1 +++ b/selector.1 @@ -19,10 +19,11 @@ selection. As you type 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 main usage of selector is as an efficient search in the shell -command history. With the correct option, it will inject the selected -line into the virtual tty input buffer, hence allowing the user to -edit the line and execute it as a standard command. +This command was mainly designed as a way to search in the shell +history, for which it is substantially more efficient than the +standard readline ^R bidding. The -v option will inject the selected +line into the tty input buffer, allowing the user to edit the line and +execute it as a standard command. Selector is also a good tool to test regexps, or a way to display menus. The -x option allows to specify a label delimiter: the part of @@ -126,6 +127,6 @@ program does not handle multibyte characters. .SH "AUTHOR" The selector command was written by Francois Fleuret - and is distributed under the under the terms of -the GNU General Public License version 3 as published by the Free -Software Foundation. + and is distributed under the terms of the GNU +General Public License version 3 as published by the Free Software +Foundation. -- 2.20.1