Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cassepipe opened this issue Nov 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cassepipe
Copy link

cassepipe commented Nov 19, 2024

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

@cassepipe cassepipe added the enhancement New feature or request label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant