Tab completion support #190
Replies: 6 comments 1 reply
-
this would definitely be nice and a feature I miss... there's a nice implementation for zsh using https://github.com/romkatv/zsh4humans its tab completion is really nice especially when cd-ing |
Beta Was this translation helpful? Give feedback.
-
something like this? https://github.com/DevAtDawn/fish-fzf-tab
|
Beta Was this translation helpful? Give feedback.
-
@DevAtDawn Thanks for the script! # $XDG_CONFIG/fish/config.fish
...
# Replace fish's default tab pager with fuzzy_complete powered by fzf
bind \t fuzzy_complete
... # $XDG_CONFIG/fish/functions/fuzzy_complete.fish
function fuzzy_complete
set -f selected (complete -C | fzf -q (commandline -t) | cut -f1)
commandline --function repaint
commandline --current-token --replace -- (string escape -- $selected)
end I'm completely a newbie in fish scripting, feel free if y'all want to tweak it! |
Beta Was this translation helpful? Give feedback.
-
Check this out everyone! #293 |
Beta Was this translation helpful? Give feedback.
-
After giving a serious try to implement this, I decide to not ever do this. See my final comment in . |
Beta Was this translation helpful? Give feedback.
-
Re-opening so it's more discoverable |
Beta Was this translation helpful? Give feedback.
-
Are there any plans for enabling the fuzzy search and completion from getting the output from "complete -C".
Most commands have pretty good completion these days and it would save a lot of time to fill in for example the output of
docker container stop
, or of tmux sessions.This used to technically be an implemented feature on jethrokuan/fzf but had quite a few bugs with the implementation, especially with fish-shell itself not returning the quoted strings as output of "complete -C": fish-shell/fish-shell#3469
Beta Was this translation helpful? Give feedback.
All reactions