zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.93k stars 2.7k forks source link

Advanced pane layout management (empty pane support, not auto-closing panes, pane layout setup) #14817

Open jankuca opened 1 month ago

jankuca commented 1 month ago

Check for existing issues

Describe the feature

I am very used to working with two to four columns of code (side-by-side panes) and I want to be in full control in how many there are without them constantly auto-closing.

What I'm missing:

If applicable, add mockups / screenshots to help present your vision of the feature

No response

notpeter commented 1 month ago

Thanks for writing up your thoughts. This feels like multiple parts which would likely need to built in order. Something like:

  1. Empty panes: allow panes to exist after last tab is closed and a method to create/destroy empty panes.
  2. Pre-defined groups of auto-sized empty panes (2 column, 3 column, 2x2 grid, etc)
  3. Method to tabs to migrate to another pane when their pane is destroyed.
neunato commented 1 month ago

Also related - moving tabs to panes, ideally with an option to keep focus in current pane or follow the moving tab.

universalmind303 commented 1 week ago

in zellij, you can define "layouts", something similar would be great!