From a74f7c598912c848ea2c27b0dd06661ba1a32d77 Mon Sep 17 00:00:00 2001 From: unrelentingtech Date: Sun, 28 Aug 2022 14:52:29 +0300 Subject: [PATCH] Add wezterm to get_terminal_provider https://github.com/wez/wezterm is a terminal emulator with its own built-in multiplexer --- helix-view/src/editor.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 520a425c18ac..0bf7ebd02cc9 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -211,6 +211,13 @@ pub fn get_terminal_provider() -> Option { }); } + 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 }