*-highlight: FAST_BLIST_PATTERNS

This commit is contained in:
Sebastian Gniazdowski 2018-05-25 17:18:31 +02:00
parent 1d4d584c45
commit d79531331f
2 changed files with 9 additions and 0 deletions

View file

@ -20,6 +20,14 @@ with surrounding commands:
[![asciicast](https://asciinema.org/a/155704.png)](https://asciinema.org/a/155704)
# 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
- Canceling search doesn't clear entered query. Change to previous behavior via:

View file

@ -635,6 +635,7 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
-hsmw-highlight-check-path()
{
: ${expanded_path:=${(Q)~arg}}
[[ -n "${FAST_BLIST_PATTERNS[(K)$expanded_path]}" ]] && return 1
[[ -z $expanded_path ]] && return 1
[[ -e $expanded_path ]] && return 0