diff options
author | Christian Duerr <contact@christianduerr.com> | 2018-03-10 20:24:10 +0100 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-06-02 09:56:50 -0700 |
commit | 2c7bb9a4d3ce3ead6de4ca6485ca67c44c0bd1c1 (patch) | |
tree | 68616e8f2d0c2018d766d8462dc122bea1d70923 /src/config.rs | |
parent | e20aa550cbcf7b3f7be6757c007960b3f9b1ac08 (diff) | |
download | alacritty-2c7bb9a4d3ce3ead6de4ca6485ca67c44c0bd1c1.tar.gz alacritty-2c7bb9a4d3ce3ead6de4ca6485ca67c44c0bd1c1.zip |
Add scrollback hotkeys
This offers a few additional hotkeys that can be used in combination
with scrollback. None of these are used by default yet.
This implements the following bindings:
- ScrollPageUp: Scroll exactly one screen height up
- ScrollPageDown: Scroll exactly one screen height down
- ScrollToTop: Scroll as far up as possible
- ScrollToBottom: Scroll as far down as possible
This fixes #1151.
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index e7f1b587..f8dad1f2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -588,7 +588,8 @@ impl<'a> de::Deserialize<'a> for ActionWrapper { type Value = ActionWrapper; fn expecting(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.write_str("Paste, Copy, PasteSelection, IncreaseFontSize, DecreaseFontSize, ResetFontSize, or Quit") + f.write_str("Paste, Copy, PasteSelection, IncreaseFontSize, DecreaseFontSize, \ + ResetFontSize, ScrollPageUp, ScrollPageDown, ScrollToTop, ScrollToBottom or Quit") } fn visit_str<E>(self, value: &str) -> ::std::result::Result<ActionWrapper, E> @@ -601,6 +602,10 @@ impl<'a> de::Deserialize<'a> for ActionWrapper { "IncreaseFontSize" => Action::IncreaseFontSize, "DecreaseFontSize" => Action::DecreaseFontSize, "ResetFontSize" => Action::ResetFontSize, + "ScrollPageUp" => Action::ScrollPageUp, + "ScrollPageDown" => Action::ScrollPageDown, + "ScrollToTop" => Action::ScrollToTop, + "ScrollToBottom" => Action::ScrollToBottom, "Quit" => Action::Quit, _ => return Err(E::invalid_value(Unexpected::Str(value), &self)), })) |