mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 11:33:10 +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)"
|
local -r last_command="$(echo "${input}" | navi fn widget::last_command)"
|
||||||
|
|
||||||
if [ -z "${last_command}" ]; then
|
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
|
else
|
||||||
local -r find="$last_command"
|
local -r find="$last_command"
|
||||||
local -r replacement="$(_navi_call --print --query "${last_command}")"
|
local -r replacement="$(_navi_call --print --query "${last_command}")"
|
||||||
|
|
|
@ -15,7 +15,7 @@ _navi_widget() {
|
||||||
local replacement="$last_command"
|
local replacement="$last_command"
|
||||||
|
|
||||||
if [ -z "${last_command}" ]; then
|
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
|
elif [ "${LASTWIDGET}" = "_navi_widget" ] && [ "$input" = "$previous_output" ]; then
|
||||||
find="$input"
|
find="$input"
|
||||||
replacement="$(_navi_call --print --query "${previous_last_command:-$last_command}")"
|
replacement="$(_navi_call --print --query "${previous_last_command:-$last_command}")"
|
||||||
|
|
Loading…
Reference in a new issue