mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 02:14:19 +00:00
Merge 373ad9393a into b01291e040
This commit is contained in:
commit
af02c92483
1 changed files with 6 additions and 3 deletions
|
|
@ -16,8 +16,11 @@ _navi_widget() {
|
|||
local -r replacement="$(_navi_call --print --query "$last_command")"
|
||||
local output="$input"
|
||||
if [ -n "$replacement" ]; then
|
||||
output="${input}_NAVIEND"
|
||||
output="${output//$find/$replacement}"
|
||||
output="${input}_NAVIEND"
|
||||
output=$(
|
||||
shopt -u patsub_replacement
|
||||
printf '%s' "${output//"$find"/"$replacement"}"
|
||||
)
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
@ -33,4 +36,4 @@ if [ ${BASH_VERSION:0:1} -lt 4 ]; then
|
|||
bind '"\C-g": " \C-b\C-k \C-u`_navi_widget_legacy`\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": _navi_widget'
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue