Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
d30a501b
Commit
d30a501b
authored
Dec 15, 2015
by
Sebastian Gniazdowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
znt: more optimizing workarounds for 5.0.6 <= zsh < 5.2
parent
357d57c5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
README.md
plugins/zsh-navigation-tools/README.md
+1
-1
n-list
plugins/zsh-navigation-tools/n-list
+6
-2
No files found.
plugins/zsh-navigation-tools/README.md
View file @
d30a501b
...
...
@@ -105,7 +105,7 @@ colorize output of the tools, via their config files (check out e.g. n-cd.conf,
it uses this).
## Performance
ZNT are fastest with Zsh before 5.0.
8
and starting from 5.2
ZNT are fastest with Zsh before 5.0.
6
and starting from 5.2
vim:filetype=conf
plugins/zsh-navigation-tools/n-list
View file @
d30a501b
...
...
@@ -243,7 +243,9 @@ while (( 1 )); do
# Take all elements, including duplicates and non-selectables
typeset
+U list
repeat 1
;
do
list
=(
"
$@
"
)
done
# Remove non-selectable elements
[
"
$#NLIST_NONSELECTABLE_ELEMENTS
"
-gt
0
]
&&
for
i
in
"
${
(nO)NLIST_NONSELECTABLE_ELEMENTS[@]
}
"
;
do
...
...
@@ -309,7 +311,9 @@ while (( 1 )); do
# Take all elements, including duplicates and non-selectables
typeset
+U list
repeat 1
;
do
list
=(
"
$@
"
)
done
# Remove non-selectable elements only when in uniq mode
[
"
$NLIST_IS_UNIQ_MODE
"
-eq
1
]
&&
[
"
$#NLIST_NONSELECTABLE_ELEMENTS
"
-gt
0
]
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment