[Feature Request] Add enter_accept_shell_up_key_binding to allow different Enter behavior for Up and Ctrl-R
Feature request
It would be useful to allow enter_accept to be configured separately for the shell up-key binding and for the normal Atuin search (Ctrl-R).
Background
I use Atuin in two slightly different ways:
- Up arrow: as a replacement for native shell history navigation.
- Ctrl-R: as a replacement for the traditional fzf history search.
These two interactions naturally have different Enter-key behavior.
With native shell history, I press Up to select a previous command and then press Enter to execute it immediately.
With fzf-style Ctrl-R history search, selecting a command usually inserts it into the shell buffer first, so I can review or edit it before pressing Enter again to execute it.
Atuin already allows the shell up-key binding to have separate settings such as:
inline_height_shell_up_key_binding = 1With inline_height_shell_up_key_binding = 1, the Up-arrow interaction can feel very close to native shell history.
However, enter_accept is currently shared between the Up-arrow search and Ctrl-R, so I cannot reproduce the behavior above.
Desired behavior
It would be great to have an option such as:
enter_accept = false
enter_accept_shell_up_key_binding = truewhich would result in:
Up arrow → Enter
execute the selected command immediately
Ctrl-R → Enter
insert the selected command into the shell buffer
without executing itThis would closely match the traditional combination of:
Up arrow → native shell history
Ctrl-R → fzf history searchwhile still allowing both interactions to use Atuin.
Backwards compatibility
If enter_accept_shell_up_key_binding is not set, it could simply inherit the value of enter_accept, similar to how the existing shell-up-specific settings fall back to their general counterparts.
Source: atuinsh/atuin