mirror of
https://github.com/denisidoro/navi
synced 2025-02-16 12:38:28 +00:00
Update navi.plugin.fish
This commit is contained in:
parent
487417574d
commit
44d8dfc01d
1 changed files with 15 additions and 1 deletions
|
@ -17,6 +17,20 @@ function navi-widget -d "Show cheat sheets"
|
|||
end
|
||||
|
||||
function smart_replace
|
||||
set -l current_buffer (commandline -b)
|
||||
set -l current_process (commandline -p)
|
||||
set -l best_match (navi --print --best-match --query $current_process)
|
||||
echo $best_match $current_process
|
||||
|
||||
if [ $current_process != $best_match ]
|
||||
echo "true"
|
||||
else
|
||||
echo "false"
|
||||
navi-widget
|
||||
end
|
||||
|
||||
|
||||
|
||||
#cli_buffer = commandline -
|
||||
# split at last | left/right str
|
||||
# set $user_input
|
||||
|
|
Loading…
Add table
Reference in a new issue