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 jdrst committed Sep 13, 2022
1 parent 22b9938 commit 7bfeb90
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 @@ -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
}

Expand Down

0 comments on commit 7bfeb90

Please sign in to comment.