-
Notifications
You must be signed in to change notification settings - Fork 2
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
Not working with fzf-history-widget when pressing ctrl+r #12
Comments
After spending several hours troubleshooting and with the help of ChatGPT, I discovered that the issue was caused by the fzf-history-widget using a subshell. To address this, I modified the widget to avoid using a subshell for storing the selected value. Instead, I ensured that fzf runs as a foreground process rather than in the background. Here's the updated code in case it helps someone else: I edited the widget code in Please let me know if there is a better way to fix it, I don't have experience with bash scripting.
|
Another way to resolve this issue is by adding support for handling subshell processes to the plugin. |
Thanks for sharing your solution. I use atuin, so I've never encountered this. This plugin can only evaluate what is returned by Zellij, which is Using the
Note that it's also possible to toggle the plugin from the shell: zellij pipe --name autolock -- [enable|disable|toggle] and toggle the lock status using: zellij action switch-mode [locked|normal] I tried to figure out another approach, but gave up. Thanks for sharing. |
zellij --version
: 0.41.1Terminal version: wezterm 20240203-110809-5046fc22
Operating system: OS X
Issue description
It works well with fzf except with the keybinding CTRL+R to see the history
Minimal reproduction
brew install fzf
Add
source <(fzf --zsh)
to .zshrcsource ~/.zshrc
Then press Ctrl+R and zellij autolock doesn't work
Other relevant information
The text was updated successfully, but these errors were encountered: