diff options
author | Carlos Tuñón <camotubi@gmail.com> | 2019-01-05 15:47:12 -0500 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-01-05 20:47:12 +0000 |
commit | e4dc43e87c5330c1f22dc2e7570d7e66881ef647 (patch) | |
tree | b8bfa95519ac71845d5ed2bc873cfdd57dc27993 /src/config.rs | |
parent | f4fc9eb35a02426dac33a19e2cb9ff182d745316 (diff) | |
download | alacritty-e4dc43e87c5330c1f22dc2e7570d7e66881ef647.tar.gz alacritty-e4dc43e87c5330c1f22dc2e7570d7e66881ef647.zip |
Add key/mouse action for spawning new Alacritty instances
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 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<E>(self, value: &str) -> ::std::result::Result<ActionWrapper, E> @@ -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)), })) } |