Skip to content

Commit

Permalink
Add wezterm to get_terminal_provider (helix-editor#3588)
Browse files Browse the repository at this point in the history
https://github.com/wez/wezterm is a terminal emulator with its own built-in multiplexer
  • Loading branch information
valpackett authored and Shekhinah Memmel committed Dec 11, 2022
1 parent 78fb0df commit 1bdbb74
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,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
}

Expand Down

0 comments on commit 1bdbb74

Please sign in to comment.