Use the same fish completion function for commands

This commit is contained in:
pagedown 2022-06-28 11:35:11 +08:00
parent 01df828353
commit 297dea881d
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB
2 changed files with 0 additions and 2 deletions

View File

@ -1,7 +1,6 @@
function __ksi_completions function __ksi_completions
set --local ct (commandline --current-token) set --local ct (commandline --current-token)
set --local tokens (commandline --tokenize --cut-at-cursor --current-process) set --local tokens (commandline --tokenize --cut-at-cursor --current-process)
set tokens[1] "clone-in-kitty"
printf "%s\n" $tokens $ct | command kitty +complete fish2 printf "%s\n" $tokens $ct | command kitty +complete fish2
end end

View File

@ -1,7 +1,6 @@
function __ksi_completions function __ksi_completions
set --local ct (commandline --current-token) set --local ct (commandline --current-token)
set --local tokens (commandline --tokenize --cut-at-cursor --current-process) set --local tokens (commandline --tokenize --cut-at-cursor --current-process)
set tokens[1] "edit-in-kitty"
printf "%s\n" $tokens $ct | command kitty +complete fish2 printf "%s\n" $tokens $ct | command kitty +complete fish2
end end