-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
CTRL-R
/ CTRL-T
stopped working
#4211
Comments
So it looks like you're loading the shell integration files from the master branch, but they're not guaranteed to be compatible with the latest binary released. For this very reason, it's been a while since fzf included the scripts in the binary itself. source <(fzf --zsh) The error you're experiencing will be resolved once fzf releases a new version, and you upgrade the binary. But it can't break again any time. So you have 3 options,
|
@junegunn thank you for responding. I would like to use option 1 as you recommended but I am not very skilled with shell things, so I am unsure if what I need to do is the following: zinit wait"0b" lucid light-mode for \
id-as'fzf' \
as"program" \
from"gh-r" \
nocompile \
@junegunn/fzf
zinit wait"0c" as"completion" light-mode lucid for \
- id-as'zsh-completions' @zsh-users/zsh-completions \
+ id-as'zsh-completions' @zsh-users/zsh-completions
- id-as'fzf-completion' mv'fzf-completion -> _fzf' https://github.com/junegunn/fzf/blob/master/shell/completion.zsh
zinit wait"0d" lucid light-mode for \
- id-as"fzf-keybindings" https://github.com/junegunn/fzf/blob/master/shell/key-bindings.zsh \
id-as'fzf-tab' @Aloxaf/fzf-tab
+ source <(fzf --zsh) Is this correct? By the way, I've had this configuration since before #3675, which might explain why I had it like that. Would it be possible to detect old init configurations of fzf? |
I'm a bash user and have no experience with
The scripts can check the output of |
To better understand what I am doing, the output from |
Yes, it prints the contents of both files at the time of the build. Each section starts and ends with a special comment, so you can use something like
|
Thank you for helping me out with this. It does work, I had to register it as a callback to zinit as follows: zinit wait"0b" lucid light-mode for \
id-as'fzf' \
as"program" \
from"gh-r" \
nocompile \
+ atload"source <(fzf --zsh)" \
@junegunn/fzf
zinit wait"0c" as"completion" light-mode lucid for \
- id-as'zsh-completions' @zsh-users/zsh-completions \
+ id-as'zsh-completions' @zsh-users/zsh-completions
- id-as'fzf-completion' mv'fzf-completion -> _fzf' https://github.com/junegunn/fzf/blob/master/shell/completion.zsh
zinit wait"0d" lucid light-mode for \
- id-as"fzf-keybindings" https://github.com/junegunn/fzf/blob/master/shell/key-bindings.zsh \
id-as'fzf-tab' @Aloxaf/fzf-tab Note: Updated based on #4211 (comment) |
Good to hear that you sorted it out. I'll leave this open until I release the next version in case others run into the same issue. |
Shouldn't it be |
You are right. Not sure why when I tested Thank you. I'll update my previous comment. |
Not sure whether it makes a huge difference, but I would suggest to use zinit from'gh-r' pick'/dev/null' for \
atclone'./fzf --zsh > __fzf__.zsh' \
atpull'%atclone' \
src'__fzf__.zsh' \
sbin'fzf' junegunn/fzf Edit: removed the |
Thanks. Yes, reading static script files should be faster than running
FWIW, I don't think |
Ah, you're right 👍 I copied this from another plugin where I used this (probably without needing it there as well). I've removed it from my comment. Thanks! |
Checklist
man fzf
)Output of
fzf --version
0.58.0 (65db735)
OS
Shell
Problem / Steps to reproduce
ctrl+r
orctrl+t
to trigger either of the actions associated with the keybindings.$FZF_DEFAULT_OPTS: height required: HEIGHT
I am using ZInit to install fzf:
I tried reorganizing the initialization order with
wait"0<something>"
but that did nothing.I haven't modified anything about fzf, how it is installed, or how it is initialized. I stopped working after updating the zinit plugins though.
The text was updated successfully, but these errors were encountered: