diff options
author | unrelentingtech | 2022-08-29 00:24:22 +0000 |
---|---|---|
committer | GitHub | 2022-08-29 00:24:22 +0000 |
commit | 51b62230da81913564692482d8f365e27d6f6cec (patch) | |
tree | 575d9a150c0ba97c83b8a6011fd028a2515c4d22 | |
parent | eeb0a9f504c689a0be6f0dc09035567e3aa753ad (diff) |
Add wezterm to get_terminal_provider (#3588)
https://github.com/wez/wezterm is a terminal emulator with its own built-in multiplexer
-rw-r--r-- | helix-view/src/editor.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 520a425c..0bf7ebd0 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -211,6 +211,13 @@ pub fn get_terminal_provider() -> Option<TerminalConfig> { }); } + if env_var_is_set("WEZTERM_UNIX_SOCKET") && exists("wezterm") { + return Some(TerminalConfig { + command: "wezterm".to_string(), + args: vec!["cli".to_string(), "split-pane".to_string()], + }); + } + None } |