mirror of
https://github.com/denisidoro/navi
synced 2024-11-10 05:54:18 +00:00
Respect fzf-overrides in shell widget (#568)
This commit is contained in:
parent
7257845abf
commit
63068d2446
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ _navi_widget() {
|
|||
local -r last_command="$(echo "${input}" | navi fn widget::last_command)"
|
||||
|
||||
if [ -z "${last_command}" ]; then
|
||||
local -r output="$(_navi_call --print --fzf-overrides '--no-select-1')"
|
||||
local -r output="$(FZF_OVERRIDES="${FZF_OVERRIDES:-} --no-select-1" _navi_call --print)"
|
||||
else
|
||||
local -r find="$last_command"
|
||||
local -r replacement="$(_navi_call --print --query "${last_command}")"
|
||||
|
|
|
@ -15,7 +15,7 @@ _navi_widget() {
|
|||
local replacement="$last_command"
|
||||
|
||||
if [ -z "${last_command}" ]; then
|
||||
replacement="$(_navi_call --print --fzf-overrides '--no-select-1')"
|
||||
replacement="$(FZF_OVERRIDES="${FZF_OVERRIDES:-} --no-select-1" _navi_call --print)"
|
||||
elif [ "${LASTWIDGET}" = "_navi_widget" ] && [ "$input" = "$previous_output" ]; then
|
||||
find="$input"
|
||||
replacement="$(_navi_call --print --query "${previous_last_command:-$last_command}")"
|
||||
|
|
Loading…
Reference in a new issue