mirror of
https://github.com/denisidoro/navi
synced 2024-11-10 14:04:17 +00:00
Do not use deprecated args, commands.
This commit is contained in:
parent
00a8da653e
commit
7a8df3da45
2 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ _call_navi() {
|
|||
local selected
|
||||
|
||||
if [ -n "${READLINE_LINE}" ]; then
|
||||
if selected="$(printf "%s" "$(navi --print --no-autoselect query "${READLINE_LINE}" </dev/tty)")"; then
|
||||
if selected="$(printf "%s" "$(navi --print --fzf-overrides '--no-select-1' --query "${READLINE_LINE}" </dev/tty)")"; then
|
||||
READLINE_LINE="$selected"
|
||||
READLINE_POINT=${#READLINE_LINE}
|
||||
fi
|
||||
|
@ -43,4 +43,4 @@ if [ ${BASH_VERSION:0:1} -lt 4 ]; then
|
|||
bind '"\C-g": " \C-b\C-k \C-u`__call_navi_legacy_versions`\e\C-e\C-a\C-y\C-h\C-e\e \C-y\ey\C-x\C-x\C-f"'
|
||||
else
|
||||
bind -x '"\C-g": _call_navi'
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
_call_navi() {
|
||||
local selected
|
||||
if [ -n "$LBUFFER" ]; then
|
||||
if selected="$(printf "%s" "$(navi --print --no-autoselect query "${LBUFFER}" </dev/tty)")"; then
|
||||
if selected="$(printf "%s" "$(navi --print --fzf-overrides '--no-select-1' --query "${LBUFFER}" </dev/tty)")"; then
|
||||
LBUFFER="$selected"
|
||||
fi
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue