Skip to content

Commit

Permalink
Respect fzf-overrides in shell widget (denisidoro#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisidoro authored Jun 15, 2021
1 parent 7257845 commit 63068d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/navi.plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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}")"
Expand Down
2 changes: 1 addition & 1 deletion shell/navi.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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}")"
Expand Down

0 comments on commit 63068d2

Please sign in to comment.