Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using fzf-file-widget command in fish when in default/normal mode when VI is on, not working same as when in insert mode #3521

Open
5 of 10 tasks
mxaddict opened this issue Nov 30, 2023 · 1 comment

Comments

@mxaddict
Copy link

  • I have read through the manual page (man fzf)
  • I have the latest version of fzf
  • I have searched through the existing issues

Info

  • OS
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Shell
    • bash
    • zsh
    • 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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants