-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
moveFocus to panel using number #5803
Comments
Thanks for the suggestion! I think this is going to be enabled by the same work that enables #5464 actually. Behind the scenes, commandline arguments to This is strictly a subset of the #5464 work, but IMO this also works as it's own atomic PR (and adding the commandline arg would be a follow-up changelist), so I'm gonna leave this open and parent to the rest of the "Panes" work. Thanks! |
## Summary of the Pull Request Adds support for the `focusPane` action, and the `focus-pane` subcommand. These allow the user to focus a pane by it's ID. * `focusPane` accepts an `id`, identifying the id of the pane to focus. * `focus-pane`, `fp` requires the parameter `--target,-t` to ID the pane it's going to focus. ## PR Checklist * [x] Closes #5803 * [x] Closes #5464 * [x] I work here * [x] Tests added/passed * [ ] Requires documentation to be updated - oh no ## Detailed Description of the Pull Request / Additional comments The ID isn't _totally_ useful right now, since users can't see them. But they're there, and used in-order. This is just slightly more ergonomic for complicated commandlines than `mf up; mf left` ## Validation Steps Performed Tested in command palette Tested a variety of commandlines. `wtd -w 0 mf down ; sp` and `wtd -w 0 fp -t 1 ; sp` gave me special difficulty.
🎉This issue was addressed in #10142, which has now been successfully released as Handy links: |
Description of the new feature/enhancement
Hi, currently terminal only support moveFocus to up/down/left/right. How can I config to support move focus to panel using number?
Proposed technical implementation details (optional)
For example, the terminal window is spitted to following panels 1,2,3 and 4
| 1 | 2 |
| 3 | 4 |
I wan to jump between panel using moveFoucus #panel. eg
When focus on panel 1, I want to move to 4 using moveFocus 4 to jump to panel 4. Instead of moveFocus down and moveFocus right.
The text was updated successfully, but these errors were encountered: