-
Notifications
You must be signed in to change notification settings - Fork 82
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
fzf results contain bind commands #183
Comments
Hmm that is very mysterious indeed. I double checked the code for
|
These lines only appear in Also, are you using tide? |
I also started seeing this message after some upgrades, fish and this plugin is up-to-date. To answer some of the questions:
the output when starting the shell still appears.
now I'm seeing:
here is my output (with some custom bindings):
Seeing this, could this be a conflict between |
Try running |
Then I'm seeing |
At you using tide or anything that runs in background? Put |
yep, tide
no error then. Interesting is that I still have my mappings. |
I see a pull request to fix this. Thank you. I am not using tide. Just starship.rs.
Output of: ❯ bind --user
bind -M insert '(' _pisces_insert_left\ \\\(\ \\\)
bind -M insert ')' _pisces_insert_right\ \\\)
bind -M insert '[' _pisces_insert_left\ \\\[\ \\\]
bind -M insert ']' _pisces_insert_right\ \\\]
bind -M insert '{' _pisces_insert_left\ \\\{\ \\\}
bind -M insert '}' _pisces_insert_right\ \\\}
bind -M insert '"' _pisces_insert_identical\ \\\"
bind -M insert \' _pisces_insert_identical\ \\\'
bind -M insert -k backspace _pisces_backspace
bind -M insert \x7f _pisces_backspace
bind -M insert \t _pisces_complete
bind -M insert . _puffer_fish_expand_dots
bind -M insert ! _puffer_fish_expand_bang
bind \cf _fzf_search_directory
bind \e\cl _fzf_search_git_log
bind \e\cs _fzf_search_git_status
bind \cr _fzf_search_history
bind \cv '_fzf_search_variables (set --show | psub) (set --names | psub)'
bind -M insert \cf _fzf_search_directory
bind -M insert \e\cl _fzf_search_git_log
bind -M insert \e\cs _fzf_search_git_status
bind -M insert \cr _fzf_search_history
bind -M insert \cv '_fzf_search_variables (set --show | psub) (set --names | psub)' Other fish shell plugins. omf l
Plugins
aws fish-spec omf
fisher list
jorgebucaran/fisher
edc/bass
laughedelic/pisces
jethrokuan/z
evanlucas/fish-kubectl-completions
markcial/upto
nickeb96/puffer-fish
h-matsuo/fish-color-scheme-switcher
PatrickF1/fzf.fish
patrickf1/colored_man_pages.fish |
Removing vi bindings fixes the problem. |
@Kabouik maybe use lowercase i.e. |
That was actually what I did initially, and just tried with upper case later when I saw the issue. It seemed to make no difference unfortunately. It's fairly minor anyway, but just wanted to mention that the issue shows up for me too even though I did not set vi keybindings in my fish config.
…On 2021-07-12 01:55 Kid ***@***.***> wrote:
@Kabouik maybe use lowercase i.e. `\cf` instead of `\cF`.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#183 (comment)
6
|
Hi @Kabouik! Sorry for the late reply. Can you try adding |
Ok actually, you don't need to do that. I thought about it some more and I know what's wrong. It's because you are passing the flag |
This fixes #183, which is a resulting bug from #180. ## Explanation of the issue #180 makes `$_fzf_search_vars_command` unavailable for non-interactive sessions. However, `fzf_configure_bindings` depends on that variable being available. If the user puts `fzf_configure_bindings` in their `config.fish`, `fzf_configure_bindings` gets executed in non-interactive sessions e.g. fzf preview windows or by tide, and the following line in the function... https://github.com/PatrickF1/fzf.fish/blob/17d54b576919ee77644779db2dcae56d372a8830/functions/fzf_configure_bindings.fish#L33 ...essentially becomes: ```fish test -n $key_sequences[5] && bind --mode $mode $key_sequences[5] ``` which results in error message like `bind --preset \cv fish_clipboard_paste` or `bind: No binding found for sequence '\cv'`. ## Solution Don't execute the entirety of `fzf_configure_bindings` if not in interactive mode. And for good measure, quote `_fzf_search_vars_command` so that even if it does get executed, the bind command will run successfully.
Sorry for everyone who had this issue...now I know why fzf.fish lost 5+ stars in the past 2 weeks :( |
Awesome, that seems to work, thanks @PatrickF1. And fzf.fish is great, no worries, I starred it and started recommending it right after I learnt about it!
…On 2021-07-17 23:35 Patrick ***@***.***> wrote:
Sorry for everyone who had this issue...now I know why fzf.fish lost
5+ stars in the past 2 weeks :(
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#183 (comment)
3
|
Thanks @Kabouik! |
Describe the bug
adding
fzf_configure_bindings --directory=\cf
toconfig.fish
adds additional lines of text to all fzf results:bind --preset \\cv fish_clipboard_paste
bind --preset -M insert \\cv fish_clipboard_paste
Steps to Reproduce
Screenshots
Environment
Versions installed:
Additional context
Anything else?
The text was updated successfully, but these errors were encountered: