(navigate) added new settings and fixed completions
This commit is contained in:
1 parent
efd033c50a
commit
174169d057
2 files changed
+23
-17
No files matched your search
@@ -34,11 +34,11 @@ function navconfig {
|
||||
function _book {
|
||||
CURRENT_WORD=${COMP_WORDS[COMP_CWORD]}
|
||||
if [[ COMP_CWORD -eq 1 ]]; then
|
||||
BOOKMARKS="add remove $(__call_navigate bookmark names)"
|
||||
BOOKMARKS="add remove $(__call_navigate bookmark completions)"
|
||||
COMPREPLY=($(compgen -W "${BOOKMARKS}" -- $CURRENT_WORD))
|
||||
elif [[ COMP_CWORD -eq 2 ]]; then
|
||||
if [[ "${COMP_WORDS[1]}" = "remove" ]]; then
|
||||
BOOKMARKS="$(__call_navigate bookmark names)"
|
||||
BOOKMARKS="$(__call_navigate bookmark completions)"
|
||||
COMPREPLY=($(compgen -W "${BOOKMARKS}" -- $CURRENT_WORD))
|
||||
fi
|
||||
elif [[ COMP_CWORD -eq 3 ]]; then
|
||||
|
||||
Reference in new issue
Block a user