Where do the files go?:
~/.config/fish/functions/fish_user_key_bindings.fish ~/.config/fish/functions/fzf-smart-completion-setup.fish
Source:
https://feltrac.co/environment/2020/01/18/build-your-own-shell-completion.html
Changes:
- Some "" quotes included "" which didn't work (for me), fixed that
- Fixed to consistent 4 space indent
- Use setup function to setup smart completion
- Use fish_user_key_bindings to call setup function
Does it work:
- Go to a git folder that has some changes
- Type
git add<SPACE>
and thenALT-t
. If you see changed files and a preview next to it, \o/