diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-11-19 08:33:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-19 08:33:48 +0000 |
commit | 42d89899162164128364c503cee29dc65103d55d (patch) | |
tree | 8e1511b4a5438272d1e9e958107a04f061b720d5 /alacritty_macos.yml | |
parent | e429b8dfdda3228838cd839783d17376a65b44fe (diff) | |
download | alacritty-42d89899162164128364c503cee29dc65103d55d.tar.gz alacritty-42d89899162164128364c503cee29dc65103d55d.zip |
Add keybinding action for clearing warns/errors
Since running `clear` inside of tmux doesn't actually clear any part of
the screen, but just resets the scrolling region, the warning and error
notices can't be removed without quitting tmux or Alacritty.
As a solution, a new action `ClearLogNotice` has been added which has
been bound to Ctrl+L by default. As a result, Ctrl+L can be used inside
of tmux to remove the messages, even though tmux doesn't clear the
screen.
This fixes #1811.
Diffstat (limited to 'alacritty_macos.yml')
-rw-r--r-- | alacritty_macos.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/alacritty_macos.yml b/alacritty_macos.yml index e4ead06d..db6fa8ca 100644 --- a/alacritty_macos.yml +++ b/alacritty_macos.yml @@ -366,6 +366,7 @@ live_config_reload: true # - ClearHistory # - Hide # - Quit +# - ClearLogNotice # # Values for `command`: # The `command` field must be a map containing a `program` string and @@ -396,6 +397,8 @@ key_bindings: - { key: Minus, mods: Command, action: DecreaseFontSize } - { key: K, mods: Command, action: ClearHistory } - { key: K, mods: Command, chars: "\x0c" } + - { key: L, mods: Control, action: ClearLogNotice } + - { key: L, mods: Control, chars: "\x0c" } - { key: PageUp, mods: Shift, chars: "\x1b[5;2~" } - { key: PageUp, mods: Control, chars: "\x1b[5;5~" } - { key: PageUp, chars: "\x1b[5~" } |