Fix completions for fish

This commit is contained in:
Kovid Goyal
2021-07-17 08:00:23 +05:30
parent 20688661aa
commit a10c19456a
3 changed files with 50 additions and 10 deletions

View File

@@ -9,6 +9,14 @@ function _ksi_main
printf "\e]%s\a" "$argv[1]"
end
if not contains "no-complete" $_ksi
function _ksi_completions
set --local ct (commandline --current-token)
set --local tokens (commandline --tokenize --cut-at-cursor --current-process)
printf "%s\n" $tokens $ct | kitty +complete fish2
end
end
if not contains "no-cursor" $_ksi
function _ksi_bar_cursor --on-event fish_prompt
printf "\e[5 q"