-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
CTRL + R not working #4294
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
Comments
How do you set up shell integration? Are you following the instruction in https://github.com/junegunn/fzf?tab=readme-ov-file#setting-up-shell-integration? |
Yeah I have used the source <(fzf --zsh) line in my zshrc file |
Can you try to reproduce your bug in a minimal zsh environment? command env -i "HOME=$HOME" "USER=$USER" "PATH=$PATH" "TERM=$TERM" zsh -f
source <(fzf --zsh)
# press ctrl-r If you don't see the error, that suggests something in your shell setup is interfering with the |
I encountered the same problem and, after extensive testing, I think I found the issue. When I open a new terminal window and execute I temporarily did this by delaying it to load last, for example, after the year 2000... zinit ice if"[[ -n '$TMUX' ]] || [[ '$TERM_PROGRAM' != 'WarpTerminal' ]]" wait"6" lucid from="gh-r" as"program" atload"source <(fzf --zsh); bindkey '^R' fzf-history-widget; bindkey '^T' fzf-file-widget"
zinit light junegunn/fzf |
Having the same issue as well, here is my current config: https://github.com/wormholecowboy/.dotfiles/blob/main/zsh/.zshrc Using version 0.60.3 on Ubuntu WSL 2. Does not show up if I run bindkey: |
can you try this suggestion in the comment below, as I suspect that in your case it might be due to the |
@LangLangBart That didn't fix the issue, however, you are right that the issue is caused by the vi plugin. I'm just going to remove that plugin since I haven't been using it much. Thanks for the help! |
Here is my zshrc file @LangLangBart Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then Path to your oh-my-zsh installation.export ZSH="$HOME/.oh-my-zsh" export PATH=$PATH:/usr/local/go/bin Set name of the theme to loadZSH_THEME="robbyrussell" Pluginsplugins=(git zsh-autosuggestions zsh-syntax-highlighting) source $ZSH/oh-my-zsh.sh Source fzf#source /opt/homebrew/Cellar/fzf/0.60.2/shell/key-bindings.zsh source <(fzf --zsh) Source zsh-autosuggestionssource $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh Source zsh-syntax-highlightingsource /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh User configurationif [[ source ~/powerlevel10k/powerlevel10k.zsh-theme To customize prompt, run
|
I am a MAC M1 user and the CTRL+R option was working fine until a few days back when it suddenly stopped working.
My fzf version is 0.60.2 (brew)
And shell is interactive and I get the following response upon using 'bindkey | grep fzf'
"^I" fzf-completion
"^R" fzf-history-widget
"^T" fzf-file-widget
"^[c" fzf-cd-widget
If I use fzf-history-widget alone I get 'widgets can only be called when ZLE is active'. My CTRL+T is working fine but this history thing
The text was updated successfully, but these errors were encountered: