Having switched to fzf, and coming from the normal Bash backwards history search, it鈥檇 be great, if selecting the item from the fzf list, would execute it right away, so I only have to hit return once.
Duplicate of #477. The issue is left open as we haven't found a way to allow the user to dynamically choose which action to perform, edit or execute, on bash. If you unconditionllay want to execute the command, you can simply append \C-m to the key binding.
# Append \C-m
bind "$(bind -s | grep '^"\\C-r"' | grep -v '\\C-m' | sed 's/"$/\\C-m"/')"
Alternatively, you can define an extra key binding for that leaving the default one unchanged.
# CTRL-X CTRL-R
bind "$(bind -s | grep '^"\\C-r"' | sed 's/"/"\\C-x/' | sed 's/"$/\\C-m"/')"
I added the "Append \C-m" line to the end of
shell/key-bindings.bash
It works but is this the correct location?
Most helpful comment
Duplicate of #477. The issue is left open as we haven't found a way to allow the user to dynamically choose which action to perform, edit or execute, on bash. If you unconditionllay want to execute the command, you can simply append
\C-mto the key binding.Alternatively, you can define an extra key binding for that leaving the default one unchanged.