From aa7487f38db92054535bd6ad6dbce8297e6a0b51 Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Wed, 22 Aug 2018 10:00:14 +0200 Subject: [PATCH] Cfg: finishing configuration keywords polishing #309 --- CONFIGURATION.md | 4 ++-- man/hstr.1 | 4 ++-- src/hstr.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CONFIGURATION.md b/CONFIGURATION.md index 54c53917..36f24230 100644 --- a/CONFIGURATION.md +++ b/CONFIGURATION.md @@ -152,7 +152,7 @@ ll Do not prompt for confirmation when deleting history items: ```bash -export HH_CONFIG=noconfirm +export HH_CONFIG=no-confirm ``` ## Verbosity @@ -266,7 +266,7 @@ export HISTFILE=~/.zsh_history More colors with case sensitive search of history: ```bash -export HH_CONFIG=hicolor,casesensitive +export HH_CONFIG=hicolor,case-sensitive ``` Favorite commands view in black and white: diff --git a/man/hstr.1 b/man/hstr.1 index b97fdf4b..f867a44b 100644 --- a/man/hstr.1 +++ b/man/hstr.1 @@ -96,7 +96,7 @@ Configuration options: \fIprompt-bottom\fR Show prompt at the bottom of the screen (default is prompt at the top). -\fInoconfirm\fR +\fIno-confirm\fR Do not ask for confirmation on a history entry delete (default is with confirmation). \fIregexp-matching\fR @@ -108,7 +108,7 @@ Configuration options: \fIkeywords-matching\fR Filter command history using keywords - item matches if contains all keywords in pattern in any order (keywords match is default). -\fIcasesensitive\fR +\fIcase-sensitive\fR Make history filtering case sensitive (it's case insensitive by default). \fIraw-history-view\fR diff --git a/src/hstr.c b/src/hstr.c index 2f2f9a19..6ff3a058 100644 --- a/src/hstr.c +++ b/src/hstr.c @@ -74,11 +74,11 @@ #define HSTR_CONFIG_SKIP_FAVORITES_COMMENTS "skip-favorites-comments" #define HSTR_CONFIG_FAVORITES "favorites-view" #define HSTR_CONFIG_SORTING "raw-history-view" -#define HSTR_CONFIG_CASE "casesensitive" +#define HSTR_CONFIG_CASE "case-sensitive" #define HSTR_CONFIG_REGEXP "regexp-matching" #define HSTR_CONFIG_SUBSTRING "substring-matching" #define HSTR_CONFIG_KEYWORDS "keywords-matching" -#define HSTR_CONFIG_NOCONFIRM "noconfirm" +#define HSTR_CONFIG_NOCONFIRM "no-confirm" #define HSTR_CONFIG_VERBOSE_KILL "verbose-kill" #define HSTR_CONFIG_PROMPT_BOTTOM "prompt-bottom" #define HSTR_CONFIG_BLACKLIST "blacklist"