fzf
fzf copied to clipboard
Using `fzf-file-widget` command in fish when in `default`/`normal` mode when `VI` is on, not working same as when in insert mode
- [x] I have read through the manual page (
man fzf) - [x] I have the latest version of fzf
- [x] I have searched through the existing issues
Info
- OS
- [x] Linux
- [ ] Mac OS X
- [ ] Windows
- [ ] Etc.
- Shell
- [ ] bash
- [ ] zsh
- [x] fish
Problem / Steps to reproduce
- Enable
vimode in fish - Open a new shell
- Press
escto exitinsertmode - Type
vim - Press
Ctrl-Tto launchfzf-file-widget - The search will have
vimat the start
Expected behavior
The search should ignore the current text as it's probably a command that we want to append a file path to (This is how it works when in insert mode and you press Ctrl-T
I've done some additional testing, and seems that I have to add 2 spaces vim <press shortcut here> and it works as expected, not sure what the cause is, but I have a feeling it related to checking if there is a command/string that is already in the cli.