diff options
author | Josh Leeb-du Toit <josh.leebdutoit@gmail.com> | 2018-07-22 10:38:53 +1000 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-07-22 00:38:53 +0000 |
commit | dbcb5885adb1f0b23c29838ef8dd837212322409 (patch) | |
tree | 7fb3a64c39efd2693cac49885c9cc49cd9a28ac7 /src/config.rs | |
parent | 0d5edb7a7a7a33369bc2c1e5cc007edbd6fcf15f (diff) | |
download | r-alacritty-dbcb5885adb1f0b23c29838ef8dd837212322409.tar.gz r-alacritty-dbcb5885adb1f0b23c29838ef8dd837212322409.tar.bz2 r-alacritty-dbcb5885adb1f0b23c29838ef8dd837212322409.zip |
Add binding action for hiding the window
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index 8d63a9c0..76daee05 100644 --- a/src/config.rs +++ b/src/config.rs @@ -549,7 +549,7 @@ 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, Hide, or Quit") } fn visit_str<E>(self, value: &str) -> ::std::result::Result<ActionWrapper, E> @@ -562,6 +562,7 @@ impl<'a> de::Deserialize<'a> for ActionWrapper { "IncreaseFontSize" => Action::IncreaseFontSize, "DecreaseFontSize" => Action::DecreaseFontSize, "ResetFontSize" => Action::ResetFontSize, + "Hide" => Action::Hide, "Quit" => Action::Quit, _ => return Err(E::invalid_value(Unexpected::Str(value), &self)), })) |