mirror of
https://github.com/atuinsh/atuin.git
synced 2025-08-04 18:58:13 +00:00
use Ctrl-n instead of Alt-n on macOS (#1106)
* use Ctrl-n instead of Alt-n on macOS * make ctrl-n instead of alt-n configurable
This commit is contained in:
parent
9c7501bbd3
commit
c0449955e3
5 changed files with 28 additions and 1 deletions
|
@ -231,3 +231,12 @@ history_filter = [
|
|||
"^innocuous-cmd .*--secret=.+"
|
||||
]
|
||||
```
|
||||
|
||||
## macOS <kbd>Ctrl-n</kbd> key shortcuts
|
||||
|
||||
macOS does not have an <kbd>Alt</kbd> key, although terminal emulators can often be configured to map the <kbd>Option</kbd> key to be used as <kbd>Alt</kbd>. *However*, remapping <kbd>Option</kbd> this way may prevent typing some characters, such as using <kbd>Option-3</kbd> to type `#` on the British English layout. For such a scenario, set the `ctrl_n_shortcuts` option to `true` in your config file to replace <kbd>Alt-0</kbd> to <kbd>Alt-9</kbd> shortcuts with <kbd>Ctrl-0</kbd> to <kbd>Ctrl-9</kbd> instead:
|
||||
|
||||
```
|
||||
# Use Ctrl-0 .. Ctrl-9 instead of Alt-0 .. Alt-9 UI shortcuts
|
||||
ctrl_n_shortcuts = true
|
||||
```
|
||||
|
|
|
@ -46,6 +46,15 @@ eval "$(atuin init zsh)"
|
|||
|
||||
You can then choose to bind Atuin if needed, do this after the call to init.
|
||||
|
||||
## <kbd>Ctrl-n</kbd> key shortcuts
|
||||
|
||||
macOS does not have an <kbd>Alt</kbd> key, although terminal emulators can often be configured to map the <kbd>Option</kbd> key to be used as <kbd>Alt</kbd>. *However*, remapping <kbd>Option</kbd> this way may prevent typing some characters, such as using <kbd>Option-3</kbd> to type `#` on the British English layout. For such a scenario, set the `ctrl_n_shortcuts` option to `true` in your config file to replace <kbd>Alt-0</kbd> to <kbd>Alt-9</kbd> shortcuts with <kbd>Ctrl-0</kbd> to <kbd>Ctrl-9</kbd> instead:
|
||||
|
||||
```
|
||||
# Use Ctrl-0 .. Ctrl-9 instead of Alt-0 .. Alt-9 UI shortcuts
|
||||
ctrl_n_shortcuts = true
|
||||
```
|
||||
|
||||
## zsh
|
||||
|
||||
If you'd like to customize your bindings further, it's possible to do so with custom shell config:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue