diff options
| author | Ellie Huxtable <ellie@elliehuxtable.com> | 2023-10-20 07:16:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-20 07:16:54 +0100 |
| commit | 88f3e2a04fcf10a1b44aaf30c91f38393b5cfeda (patch) | |
| tree | 2d3dc804c9bc9039f5d054af8bc89c046e5c7f50 /atuin-client/config.toml | |
| parent | Checkout repo so the manifest publish step can read git (#1314) (diff) | |
| download | atuin-88f3e2a04fcf10a1b44aaf30c91f38393b5cfeda.zip | |
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 'atuin-client/config.toml')
| -rw-r--r-- | atuin-client/config.toml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/atuin-client/config.toml b/atuin-client/config.toml index d1c1081f..19e8e302 100644 --- a/atuin-client/config.toml +++ b/atuin-client/config.toml @@ -123,3 +123,7 @@ ## 4. Slack webhooks ## 5. Stripe live/test keys # secrets_filter = true + +## Defaults to true. If enabled, upon hitting enter Atuin will immediately execute the command. Press tab to return to the shell and edit. +# This applies for new installs. Old installs will keep the old behaviour unless configured otherwise. +enter_accept = true |
