-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Bash, gnome terminal] Ctrl+r displaying completions but pressing "enter" does nothing #1472
Comments
I'm having the same issue on macOS. |
I can't reproduce the issue. I suggest that you start bash with a minimal configuration file with only one line [ -f ~/.fzf.bash ] && source ~/.fzf.bash and see if you still have the issue. If you don't, then you need to find the culprit in your config. |
You were right. |
@dieterdemeyer Okay, if that was the case, we can ensure that the original history command is executed like so diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash
index be24dec..cb86e98 100644
--- a/shell/key-bindings.bash
+++ b/shell/key-bindings.bash
@@ -55,7 +55,7 @@ __fzf_history__() (
local line
shopt -u nocaseglob nocasematch
line=$(
- HISTTIMEFORMAT= history |
+ HISTTIMEFORMAT= command history |
FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS --tac --sync -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS +m" $(__fzfcmd) |
command grep '^ *[0-9]') &&
if [[ $- =~ H ]]; then |
OS: MacOS catalina I'm having a similar related issue concerning The issue thats occurring is: However, if I decide to use a keyboard alias to call the history function
the interactive fuzzy finder works, however selecting the result from |
I had the same issues on MacOs using zsh. It worked with a simple
prevents somehow Edit: just saw this discussion here. |
The specific issue you mentioned for |
NixOS/nixpkgs#357123 junegunn/fzf#1472 Signed-off-by: Jakub Sokołowski <jakub@status.im>
Hello there,
I think the title describes the problem pretty well, here is a screenshot of what I get pressing ctrl+r :
But when I press the "enter" key with an option selected, the menu disappears and nothing happens.
Thanks for your help !
The text was updated successfully, but these errors were encountered: