-
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
Feature request: automatic splits similar to tiling window managers #3960
Comments
Okay so this sounds like two different requests here
|
You're right, I didn't think about different profiles because I currently only use one. Simply alternating the split types would propably be way easier to implement than If this would be implemented there could also be a split ratio parameter (also found in bspwm) |
## Summary of the Pull Request Adds support for `auto` as a potential value for a `splitPane` keybinding's `split` argument. For example: ```json { "keys": [ "ctrl+shift+z" ], "command": { "action": "splitPane", "profile": "matrix", "commandline": "cmd.exe", "split":"auto" } }, ``` When set to `auto`, Panes will decide which direction to split based on the available space within the terminal. If the pane is wider than it is tall, the pane will introduce a new vertical split (and vice-versa). ## References ## PR Checklist * [x] Closes #3960 * [x] I work here * [x] Tests added/passed * [n/a] Requires documentation to be updated ## Validation Steps Performed Ran tests, played with it.
🎉This issue was addressed in #4025, which has now been successfully released as Handy links: |
Description of the new feature/enhancement
Creating new splits could be made easier by providing a keybinding that automatically splits the currently active pane based on the current split type, similar to tiling window managers such as bspwm.
When activating the keybinding (e.g. Alt+Shift+Enter) following would happen:
If no split exists yet, the terminal would be split vertically. If a split exists and the currently active pane is part of a vertical split, it would be split horizontally and vice versa.
This is also visualized in the documentation of bspwm
Additionally, other schemes such as a spiral scheme could also be implemented
Proposed technical implementation details (optional)
The implementation could in theory be very simple: Just query the split type of the active pane
(vertical/horizontal) and create a new split of the other type when pressing the keybinding.
I would try to implement this feature myself but unfortunatley do not have the time at the moment.
The text was updated successfully, but these errors were encountered: