From adea111aca512f789fb5c18ec9de6d394137cd45 Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Fri, 27 Apr 2018 16:25:31 +0200 Subject: [PATCH] Making keywords match the default. --- dist/ubuntu-add-new-distro-base.sh | 2 +- man/hh.1 | 4 ++-- src/hstr.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/ubuntu-add-new-distro-base.sh b/dist/ubuntu-add-new-distro-base.sh index 6c5b626..de60df0 100755 --- a/dist/ubuntu-add-new-distro-base.sh +++ b/dist/ubuntu-add-new-distro-base.sh @@ -1,7 +1,7 @@ #!/bin/bash # boostrap new OR refresh distribution base for pbuilder -export DISTRO=artful +export DISTRO=beaver sudo pbuilder --create $DISTRO rm -vf ~/pbuilder/${DISTRO}-base.tgz diff --git a/man/hh.1 b/man/hh.1 index 9a5bd9e..20c3821 100644 --- a/man/hh.1 +++ b/man/hh.1 @@ -102,13 +102,13 @@ Configuration options: Do not ask for confirmation on a history entry delete (default is with confirmation). \fIregexp\fR - Filter command history using regular expressions (substring match is default) + Filter command history using regular expressions. \fIsubstring\fR Filter command history using substring. \fIkeywords\fR - Filter command history using keywords - item matches if contains all keywords in pattern in any order. + Filter command history using keywords - item matches if contains all keywords in pattern in any order (keywords match is default). \fIcasesensitive\fR Make history filtering case sensitive (it's case insensitive by default). diff --git a/src/hstr.c b/src/hstr.c index 8c5b93b..d8b4cd8 100644 --- a/src/hstr.c +++ b/src/hstr.c @@ -315,7 +315,7 @@ void hstr_init() hstr->selectionRegexpMatch=NULL; hstr->selectionSize=0; - hstr->historyMatch=HH_MATCH_SUBSTRING; + hstr->historyMatch=HH_MATCH_KEYWORDS; hstr->historyView=HH_VIEW_RANKING; hstr->caseSensitive=HH_CASE_INSENSITIVE;