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

Exiting out of fzf in normal mode sometimes causes blank prompt #132

Open
oblitzitate opened this issue Nov 27, 2019 · 2 comments
Open

Exiting out of fzf in normal mode sometimes causes blank prompt #132

oblitzitate opened this issue Nov 27, 2019 · 2 comments

Comments

@oblitzitate
Copy link

I use a custom fish_vi_key_bindings and bind fzf on normal mode. Whenever I run fzf then press escape, it sometimes doesn't show the prompt.

The prompt shows up again if I switch modes.

Could this be a repaint issue?

@jethrokuan
Copy link
Owner

Not sure how to reproduce, are you still facing this issue?

@oblitzitate
Copy link
Author

I run a function like below on startup for my key bindings:

function fish_custom_key_bindings
  # Vi-like bindings
 fish_vi_key_bindings

  # Open fzf with Ctrl+F
  bind --user -M insert \cF __fzf_open # insert mode
  bind --user -M default \cF __fzf_open # normal mode
end

If I open fzf in insert mode, then escape, the prompt looks fine:

insert-fzf
insert-fzf-esc

If I do it in normal mode, the prompt disappears sometimes:

normal-fzf
normal-fzf-esc

I have to go back to insert mode to make the prompt reappear.

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

No branches or pull requests

2 participants