From e4dc43e87c5330c1f22dc2e7570d7e66881ef647 Mon Sep 17 00:00:00 2001 From: Carlos Tuñón Date: Sat, 5 Jan 2019 15:47:12 -0500 Subject: Add key/mouse action for spawning new Alacritty instances --- src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 547bce1f..95989cb0 100644 --- a/src/config.rs +++ b/src/config.rs @@ -771,7 +771,7 @@ impl<'a> de::Deserialize<'a> for ActionWrapper { fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.write_str("Paste, Copy, PasteSelection, IncreaseFontSize, DecreaseFontSize, \ ResetFontSize, ScrollPageUp, ScrollPageDown, ScrollToTop, \ - ScrollToBottom, ClearHistory, Hide, ClearLogNotice or Quit") + ScrollToBottom, ClearHistory, Hide, ClearLogNotice, SpawnNewInstance or Quit") } fn visit_str(self, value: &str) -> ::std::result::Result @@ -792,6 +792,7 @@ impl<'a> de::Deserialize<'a> for ActionWrapper { "Hide" => Action::Hide, "Quit" => Action::Quit, "ClearLogNotice" => Action::ClearLogNotice, + "SpawnNewInstance" => Action::SpawnNewInstance, _ => return Err(E::invalid_value(Unexpected::Str(value), &self)), })) } -- cgit