mirror of
https://github.com/dvorka/hstr.git
synced 2025-02-24 14:57:35 +08:00
Adding regexp to configuration.
This commit is contained in:
parent
093fc012b2
commit
fbdfafb466
2 changed files with 7 additions and 0 deletions
3
man/hh.1
3
man/hh.1
|
@ -72,6 +72,9 @@ Configuration options:
|
|||
\fIhicolor\fR
|
||||
Get more colors with this option (default is monochromatic).
|
||||
|
||||
\fIregexp\fR
|
||||
Search command history using regular expressions (exact match is default)
|
||||
|
||||
\fIcasesensitive\fR
|
||||
Make the pattern-based filtering case sensitive (it's case insensitive by default).
|
||||
|
||||
|
|
|
@ -208,6 +208,9 @@ void hstr_get_env_configuration(Hstr *hstr)
|
|||
if(strstr(hstr_config,HH_CONFIG_CASE)) {
|
||||
hstr->caseSensitive=HH_CASE_SENSITIVE;
|
||||
}
|
||||
if(strstr(hstr_config,HH_CONFIG_REGEXP)) {
|
||||
hstr->historyMatch=HH_MATCH_REGEXP;
|
||||
}
|
||||
if(strstr(hstr_config,HH_CONFIG_SORTING)) {
|
||||
hstr->historyView=HH_VIEW_HISTORY;
|
||||
} else {
|
||||
|
@ -215,6 +218,7 @@ void hstr_get_env_configuration(Hstr *hstr)
|
|||
hstr->historyView=HH_VIEW_FAVORITES;
|
||||
}
|
||||
}
|
||||
|
||||
if(strstr(hstr_config,HH_CONFIG_DEBUG)) {
|
||||
hstr->debugLevel=HH_DEBUG_LEVEL_DEBUG;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue