summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2023-10-20 07:16:54 +0100
committerGitHub <noreply@github.com>2023-10-20 07:16:54 +0100
commit88f3e2a04fcf10a1b44aaf30c91f38393b5cfeda (patch)
tree2d3dc804c9bc9039f5d054af8bc89c046e5c7f50 /docs
parentad4868567eea10214946eaea52e2494e0e013671 (diff)
Add enter_accept to immediately execute an accepted command (#1311)
* make enter execute the command, tab copy it * Add config for enter_accept enter_accept will make Atuin immediately accept an execute a command when selected. It defaults to false in our binary, but the default config enables it. This means that users who already use atuin will not default to the new behaviour unless they opt in, but new users will have it by default. Thanks to @davidhewitt for the patch and bulk of this implementation! Currently we have it just for zsh, but I'll follow up with other shells (unless anyone beats me to it :D) * Add docs * we need to tidy up the ui code anyway * Check if using zsh * Update docs/docs/config/config.md Co-authored-by: Conrad Ludgate <conradludgate@gmail.com> --------- Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Co-authored-by: Conrad Ludgate <conradludgate@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/docs/config/config.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/docs/config/config.md b/docs/docs/config/config.md
index e0403d2a2..5cdbe9222 100644
--- a/docs/docs/config/config.md
+++ b/docs/docs/config/config.md
@@ -305,3 +305,16 @@ Default: 5
The max time (in seconds) we wait for a connection to become established with a
remote sync server. Any longer than this and the request will fail.
+
+## enter_accept
+Default: false
+
+Only supported on Zsh.
+
+When set to true, Atuin will default to immediately executing a command rather
+than the user having to press enter twice. Pressing tab will return to the
+shell and give the user a chance to edit.
+
+This technically defaults to true for new users, but false for existing. We
+have set `enter_accept = true` in the default config file. This is likely to
+change to be the default for everyone in a later release.