mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-10 06:14:12 +00:00
*-highlight: FAST_BLIST_PATTERNS
This commit is contained in:
parent
1d4d584c45
commit
d79531331f
2 changed files with 9 additions and 0 deletions
|
@ -20,6 +20,14 @@ with surrounding commands:
|
||||||
[![asciicast](https://asciinema.org/a/155704.png)](https://asciinema.org/a/155704)
|
[![asciicast](https://asciinema.org/a/155704.png)](https://asciinema.org/a/155704)
|
||||||
|
|
||||||
# News
|
# News
|
||||||
|
* 25-05-2018
|
||||||
|
- Hash holding paths that shouldn't be grepped (globbed) – blacklist for slow disks, mounts, etc.:
|
||||||
|
|
||||||
|
```zsh
|
||||||
|
typeset -gA FAST_BLIST_PATTERNS
|
||||||
|
FAST_BLIST_PATTERNS[/mount/nfs1/*]=1
|
||||||
|
FAST_BLIST_PATTERNS[/mount/disk2/*]=1
|
||||||
|
```
|
||||||
|
|
||||||
* 13-06-2017
|
* 13-06-2017
|
||||||
- Canceling search doesn't clear entered query. Change to previous behavior via:
|
- Canceling search doesn't clear entered query. Change to previous behavior via:
|
||||||
|
|
|
@ -635,6 +635,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
||||||
-hsmw-highlight-check-path()
|
-hsmw-highlight-check-path()
|
||||||
{
|
{
|
||||||
: ${expanded_path:=${(Q)~arg}}
|
: ${expanded_path:=${(Q)~arg}}
|
||||||
|
[[ -n "${FAST_BLIST_PATTERNS[(K)$expanded_path]}" ]] && return 1
|
||||||
|
|
||||||
[[ -z $expanded_path ]] && return 1
|
[[ -z $expanded_path ]] && return 1
|
||||||
[[ -e $expanded_path ]] && return 0
|
[[ -e $expanded_path ]] && return 0
|
||||||
|
|
Loading…
Reference in a new issue