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
49.47k stars 3.02k forks source link

Feature Request: Split tabs into vertical/horizontal windows #19350

Open MarcusElevait opened 2 weeks ago

MarcusElevait commented 2 weeks ago

Check for existing issues

Describe the feature

When i have for example two tabs open, i want to split them up either vertically or horizontally. Currently i'm using pane::SplitRight and pane::SplitDown, which already splits, but then i have the same tab opened twice.

Additionally it would be cool, if one could open a file from the project panel not in a new tab, but in a new vertical or horizontal split.

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

No response

JosephTLyons commented 2 weeks ago

Additionally it would be cool, if one could open a file from the project panel not in a new tab, but in a new vertical or horizontal split.

Just to note, if you hold down cmd when opening a file in the project panel, it does open it in a new vertical split. Same for the file picker, holding cmd opens it in a new vertical split. Obviously, as you pointed out, this isn't configurable for opening in horizontal tabs, but figured I would call it out as existing functionality.

lebe-dev commented 2 weeks ago

JetBrains IDEs have such feature as "Split and Move Right" and Split and Move Down" items in tab's context menu.

It's very convenient.

MarcusElevait commented 2 weeks ago

Additionally it would be cool, if one could open a file from the project panel not in a new tab, but in a new vertical or horizontal split.

Just to note, if you hold down cmd when opening a file in the project panel, it does open it in a new vertical split. Same for the file picker, holding cmd opens it in a new vertical split. Obviously, as you pointed out, this isn't configurable for opening in horizontal tabs, but figured I would call it out as existing functionality.

what is cmd in the linux world?

ovidius72 commented 2 weeks ago

Additionally it would be cool, if one could open a file from the project panel not in a new tab, but in a new vertical or horizontal split.

Just to note, if you hold down cmd when opening a file in the project panel, it does open it in a new vertical split. Same for the file picker, holding cmd opens it in a new vertical split. Obviously, as you pointed out, this isn't configurable for opening in horizontal tabs, but figured I would call it out as existing functionality.

what is cmd in the linux world?

The key with the window start icon or similar if you have a particular keyboard.

MarcusElevait commented 2 weeks ago

Okay, but this is not helping me, when opening a file via keyboard, right?