From f8c68646bac4ea3989fb31cfc048248b0b946a6b Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 10 Feb 2012 11:34:57 +0100 Subject: [PATCH] Added the -y option --- bash-selector.sh | 4 ++-- selector.1 | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bash-selector.sh b/bash-selector.sh index 68a024b..e7fb461 100755 --- a/bash-selector.sh +++ b/bash-selector.sh @@ -37,7 +37,7 @@ fi ###################################################################### function selector-history () { - selector --bash -j -u -c 7,4,0,3 -q <(history) + selector --bash -j -y -u -c 7,4,0,3 -q <(history) } ###################################################################### @@ -71,7 +71,7 @@ function selector-cd () { function selector-cd-search () { PATH_TEMP=$(mktemp /tmp/selector-cd-path.XXXXXX) - selector -j -u -t "cd" -l 1000 -d -i -c 7,2,0,3 -o ${PATH_TEMP} -q ${SELECTOR_CD_HISTORY} + selector -j -y -u -t "cd" -l 1000 -d -i -c 7,2,0,3 -o ${PATH_TEMP} -q ${SELECTOR_CD_HISTORY} NEW_PATH="$(cat ${PATH_TEMP} | sed -e 's!~!'${HOME}'!')" if [[ -s "${NEW_PATH}" ]]; then selector-cd "$(cat ${PATH_TEMP} | sed -e 's!^~!'${HOME}'!')" diff --git a/selector.1 b/selector.1 index 29d44cc..9d48af8 100644 --- a/selector.1 +++ b/selector.1 @@ -96,6 +96,9 @@ start in case sensitive mode \fB-j\fR, \fB--show-long-lines\fR print three dots at the end of truncated lines .TP +\fB-y\fR, \fB--show-hits\fR +highlight the parts of each line which trigger the detection +.TP \fB-u\fR, \fB--upper-case-makes-case-sensitive\fR using an upper case in the matching string makes the matching case-sensitive -- 2.20.1