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 thomasskk committed Sep 9, 2022
1 parent 382a132 commit 742ed2b
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 742ed2b

Please sign in to comment.