mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-22 03:13:09 +00:00
Mention inventor of *foo*~^*bar* pattern
This commit is contained in:
parent
b9575f5d08
commit
b666ef0004
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,8 @@ _hsmw_main() {
|
|||
local search_buffer="${BUFFER%% ##}" search_pattern="" colsearch_pattern=""
|
||||
search_buffer="${search_buffer## ##}"
|
||||
search_buffer="${search_buffer//(#m)[][*?|#~^()><\\]/\\$MATCH}"
|
||||
# Pattern will be *foo*~^*bar* (inventor: Mikael Magnusson)
|
||||
# It's: foo and not what doesn't contain bar, etc.
|
||||
search_pattern="${search_buffer// ##/*~^*}"
|
||||
colsearch_pattern="${search_buffer// ##/|}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue