mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 03:23:05 +00:00
Quotes
This commit is contained in:
parent
ad49f43157
commit
9f35e3ef69
1 changed files with 5 additions and 5 deletions
|
@ -1,18 +1,18 @@
|
|||
function _navi_smart_replace
|
||||
set -l current_process (commandline -p | string trim)
|
||||
|
||||
if test -z $current_process
|
||||
if test -z "$current_process"
|
||||
commandline -i (navi --print)
|
||||
else
|
||||
set -l best_match (navi --print --best-match --query $current_process)
|
||||
set -l best_match (navi --print --best-match --query "$current_process")
|
||||
|
||||
if not test $best_match >/dev/null
|
||||
if not test "$best_match" >/dev/null
|
||||
return
|
||||
end
|
||||
|
||||
if test $best_match = ""
|
||||
if test -z "$best_match"
|
||||
commandline -p (navi --print --query $current_process)
|
||||
else if test $current_process != $best_match
|
||||
else if test "$current_process" != "$best_match"
|
||||
commandline -p $best_match
|
||||
else
|
||||
commandline -p (navi --print --query $current_process)
|
||||
|
|
Loading…
Reference in a new issue