mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2025-02-03 12:08:23 +00:00
Always bind keys
This commit is contained in:
parent
5592506456
commit
c9183ce327
@ -103,7 +103,10 @@ if [[ -o zle ]]; then
|
|||||||
# Show completions for Space-Tab.
|
# Show completions for Space-Tab.
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
__zoxide_result="$(\command zoxide query --exclude "$(__zoxide_pwd || \builtin true)" --interactive -- ${words[2,-1]})" || __zoxide_result=''
|
__zoxide_result="$(\command zoxide query --exclude "$(__zoxide_pwd || \builtin true)" --interactive -- ${words[2,-1]})" || __zoxide_result=''
|
||||||
# Sends '\e[0n' to console input.
|
|
||||||
|
# Bind '\e[0n' to helper function.
|
||||||
|
\builtin bindkey '\e[0n' '__zoxide_z_complete_helper'
|
||||||
|
# Send '\e[0n' to console input.
|
||||||
\builtin printf '\e[5n'
|
\builtin printf '\e[5n'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -124,7 +127,6 @@ if [[ -o zle ]]; then
|
|||||||
}
|
}
|
||||||
\builtin zle -N __zoxide_z_complete_helper
|
\builtin zle -N __zoxide_z_complete_helper
|
||||||
|
|
||||||
\builtin bindkey '\e[0n' '__zoxide_z_complete_helper'
|
|
||||||
[[ "${+functions[compdef]}" -ne 0 ]] && \compdef __zoxide_z_complete {{ cmd }}
|
[[ "${+functions[compdef]}" -ne 0 ]] && \compdef __zoxide_z_complete {{ cmd }}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user