wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.98k stars 806 forks source link

`wezterm cli activate-pane-direction $direction` returns 0 even if no pane exists in $direction #6414

Open cassepipe opened 2 days ago

cassepipe commented 2 days ago

I would like to use the following to move around panes by just typing text

#The leading whitespace and the option ensures that those won't get into the history
setopt hist_ignore_space
alias pl="  wezterm cli activate-pane-direction Left || wezterm cli split-pane --left"
alias pr="  wezterm cli activate-pane-direction Right || wezterm cli split-pane --right"
alias pu="  wezterm cli activate-pane-direction Up || wezterm cli split-pane --top"
alias pd="  wezterm cli activate-pane-direction Down || wezterm cli split-pane --bottom"

The above don't work because because wezterm cli activate-pane-direction $direction seems to always return 0

Would it be possible to change the return value or is it bad idea ?

Thanks for the great piece of software