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

enhancement: multiple panes #11

Open
joshuajeschek opened this issue Apr 21, 2022 · 1 comment
Open

enhancement: multiple panes #11

joshuajeschek opened this issue Apr 21, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@joshuajeschek
Copy link

Hi! I'd find it really helpful if we could not only create multiple tabs, put also multiple panes inside those tabs, and then run different commands inside each one of them.
The configuration could look like this:

# Single pane (just like now, for backwards compatibility)
- title: ...
  profile: ...
  color: ...
  commands:
    - cd ...
    - ls ...

# Multiple panes
- title: ...
  profile: ...
  color: ...
  panes:
    - id: 1
      type: horizontal
      size: 0.5
      panes:
        - id: 2
          type: vertical
          size: 0.2
          commands:
            - cd ...
            - ls ...
        - id: 3
          type: vertical
          size: 0.8
          commands:
            - cd ...
            - ls ...
     - id: 4
       type: horizontal
       size: 0.5
       commands:
         - cd ...
         - ls ...

this is just a quick idea, for example the type property could be improved, maybe moved to the parents. I was thinking some kind of recursive setup would be fitting, and maybe we could also move the commands out of the panes property, and adress them through the IDs 🤔 a thing to keep in mind is that only leaf panes, so only the innermost panes can receive commands (the other ones are only containers)

and I also don't know how to implement this, but maybe I'll learn this and try this out on my own :)

@composer404
Copy link
Owner

A very interesting idea that will surely be applicable. Unfortunately, I currently have little free time for its implementation.

@composer404 composer404 added the enhancement New feature or request label Jun 12, 2022
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

2 participants