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.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.yml')
-rw-r--r-- | alacritty.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/alacritty.yml b/alacritty.yml index b3b7e977..ebba9920 100644 --- a/alacritty.yml +++ b/alacritty.yml @@ -369,6 +369,7 @@ live_config_reload: true # - ClearHistory # - Hide # - Quit +# - ClearLogNotice # # Values for `command`: # The `command` field must be a map containing a `program` string and @@ -393,6 +394,8 @@ key_bindings: - { key: Key0, mods: Control, action: ResetFontSize } - { key: Equals, mods: Control, action: IncreaseFontSize } - { key: Subtract, mods: Control, action: DecreaseFontSize } + - { key: L, mods: Control, action: ClearLogNotice } + - { key: L, mods: Control, chars: "\x0c" } - { key: Home, chars: "\x1bOH", mode: AppCursor } - { key: Home, chars: "\x1b[H", mode: ~AppCursor } - { key: End, chars: "\x1bOF", mode: AppCursor } |