fzf icon indicating copy to clipboard operation
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

Open mxaddict opened this issue 2 years ago • 1 comments

  • [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

  1. Enable vi mode in fish
  2. Open a new shell
  3. Press esc to exit insert mode
  4. Type vim
  5. Press Ctrl-T to launch fzf-file-widget
  6. The search will have vim at 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

mxaddict avatar Nov 30 '23 18:11 mxaddict

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.

mxaddict avatar Dec 12 '23 13:12 mxaddict