mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 03:23:05 +00:00
Merge pull request #169 from dawidd6/fix-fish-preview
Fix preview in fish shell Closes: #168 Might not be the best solution tho, but it does the trick.
This commit is contained in:
commit
61ba531490
1 changed files with 3 additions and 1 deletions
|
@ -20,8 +20,10 @@ ui::fzf() {
|
|||
ui::select() {
|
||||
local -r cheats="$1"
|
||||
|
||||
[[ "$SHELL" =~ 'fish' ]] || local -r sub='$'
|
||||
|
||||
local -r script_path="${NAVI_HOME}/navi"
|
||||
local -r preview_cmd="\"${script_path}\" preview \$(echo \'{}\' | $(arg::serialize_code))"
|
||||
local -r preview_cmd="\"${script_path}\" preview ${sub:-}(echo \'{}\' | $(arg::serialize_code))"
|
||||
|
||||
local -r query="$(dict::get "$OPTIONS" query)"
|
||||
local -r entry_point="$(dict::get "$OPTIONS" entry_point)"
|
||||
|
|
Loading…
Reference in a new issue