Respect fzf-overrides in shell widget (#568)

This commit is contained in:
Denis Isidoro 2021-06-15 10:12:22 -03:00 committed by GitHub
parent 7257845abf
commit 63068d2446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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}")"

View file

@ -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}")"