dbeaver icon indicating copy to clipboard operation
dbeaver copied to clipboard

Request for Vertical (Stacked) Editor Tabs Display Option in DBeaver

Open shaochangxing opened this issue 2 years ago • 16 comments

Hello DBeaver Team,

I am a frequent user of DBeaver and really appreciate the functionality it offers. However, I've been looking for a way to customize the layout of query tabs within the application to display vertically instead of horizontally, which would be particularly useful when working with numerous open queries or limited screen real estate.

Currently, it seems that DBeaver doesn't natively support a vertical orientation for its query tabs. This feature is often found in other IDEs and could greatly enhance the user experience by allowing more efficient navigation among multiple queries.

Could you please consider adding an option to configure the query tabs to stack vertically? It would help users who work on high-resolution monitors or have multi-monitor setups where space management is crucial.

Thank you very much for your consideration, and I look forward to any updates or solutions regarding this request.

shaochangxing avatar Mar 27 '24 01:03 shaochangxing

Hello, @shaochangxing Please take a look at this feature.. It sounds like what you want.

E1izabeth avatar Mar 28 '24 11:03 E1izabeth

Hello, @shaochangxing Please take a look at this feature.. It sounds like what you want.

I don't believe this suggestion is what we need.

dataract avatar Mar 28 '24 18:03 dataract

I was looking for this same resource that @shaochangxing is asking for. (idea/example below) Screenshot_2024-03-28_150509

dataract avatar Mar 28 '24 18:03 dataract

I don't believe this suggestion is what we need.

We would greatly appreciate it, if you could explain why.

E1izabeth avatar Mar 31 '24 05:03 E1izabeth

@E1izabeth 1 The picture below shows what I want 2

shaochangxing avatar Apr 01 '24 01:04 shaochangxing

改tab比较麻烦,要到上游eclipse platform

humphreygao avatar Apr 01 '24 02:04 humphreygao

改tab比较麻烦,要到上游eclipse platform

那有点难受,我经常要打开不同数据库的十几个表,切换起来有点麻烦。

shaochangxing avatar Apr 01 '24 02:04 shaochangxing

https://bugs.eclipse.org/bugs/show_bug.cgi?id=58945

https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/173778/14#message-396057146457f282afe0e4a2b76c01d9fb505022

代码满足不了要求,后面没人推进了

humphreygao avatar Apr 01 '24 02:04 humphreygao

I don't believe this suggestion is what we need.

We would greatly appreciate it, if you could explain why. I posted the idea here... https://github.com/dbeaver/dbeaver/issues/23248#issuecomment-2025810640 there isn't enough space for horizontal tabs and became hard do navigate/visualize because they are hidden (off screen)

dataract avatar Apr 01 '24 11:04 dataract

Thank you for explanation. It's a duplicate of #14546, so I'm closing this issue. You can vote for the mentioned issue with 👍 under the issue description to promote it to a higher priority.

E1izabeth avatar Apr 02 '24 20:04 E1izabeth

Thank you for explanation. It's a duplicate of #14546, so I'm closing this issue. You can vote for the mentioned issue with 👍 under the issue description to promote it to a higher priority.

The original poster there is only asking for the result tabs. We also want the query/script tabs to be vertically arranged.

dataract avatar Apr 03 '24 16:04 dataract

OK So, for clarification: the issue is about placing SQL Editor (and probably Entity editor) tabs vertically.

E1izabeth avatar Apr 04 '24 03:04 E1izabeth

OK So, for clarification: the issue is about placing SQL Editor (and probably Entity editor) tabs vertically.

Yes (SQL Editor). Me and @shaochangxing placed examples (screenshots) displaying our examples/ideas that work in the way we explained.

dataract avatar Apr 04 '24 10:04 dataract

Agreed on the need for vertical tabs. I would also add the alternative of allowing for customizing of the tab labels; when they all start with the current database name, that's all you see when you have multiple tabs open.

image

sethleonard avatar Sep 11 '24 19:09 sethleonard

One way would be to have a flag in "Project" panel where scripts are displayed vertically. Could be:

  • Not open = No flag
  • Opened but not modified = green check
  • Opened and unsaved changes = *

Just a suggestion

tha said, I would like vertical stack of tabs (position able) image

REYJL avatar Sep 13 '24 14:09 REYJL

Same request. It's very convenient when many tabs are opened.

For clarity, refer to Microsoft Edge vertical tabs.

Screenshot 2024-10-15 165630

DavidHJong avatar Oct 15 '24 08:10 DavidHJong

Agreed on the need for vertical tabs. I would also add the alternative of allowing for customizing of the tab labels; when they all start with the current database name, that's all you see when you have multiple tabs open. image

Maybe this: https://github.com/dbeaver/dbeaver/issues/9708#issuecomment-691033526 could help you @sethleonard with this script tabs title issue.

chesini avatar Jan 08 '25 13:01 chesini

Agreed on the need for vertical tabs. I would also add the alternative of allowing for customizing of the tab labels; when they all start with the current database name, that's all you see when you have multiple tabs open. image

Maybe this: #9708 (comment) could help you @sethleonard with this script tabs title issue.

Perfect. Thank you, @chesini !

sethleonard avatar Jan 08 '25 17:01 sethleonard

@humphreygao is right. Right now, if we're looking to add vertical (or stacked) editor tabs in DBeaver, we'll run into a fundamental limitation with the Eclipse platform, which DBeaver is built on. The problem is that Eclipse's UI toolkit (SWT) uses a component called CTabFolder, and it doesn't support vertical or multi-row tabs at all. This issue has been on the radar since at least 2004, as seen in Eclipse Bug 58945, but no one has managed to fix it yet.

Because DBeaver relies on SWT for its interface, getting vertical tabs would mean having to change the underlying CTabFolder widget in SWT. That’s not a small task—it would involve contributing directly to the Eclipse platform, following their development guidelines, and committing to long-term maintenance of those changes.

An alternative would be to create a custom tab management system within DBeaver to mimic vertical tabs. However, this workaround would require a lot of development effort and might not mesh perfectly with the existing SWT framework.

In summary, adding vertical editor tabs in DBeaver depends on overcoming deep-rooted limitations in the Eclipse platform. Our best bet would be to either contribute to the Eclipse SWT project or develop a creative workaround within DBeaver, though both paths come with significant challenges.

DavidHJong avatar Mar 08 '25 04:03 DavidHJong

Currently when many tabs are open, clicking the right arrow reveals a dropdown menu. Could we instead make this dropdown permanently visible--pinned as a right-hand pane--to serve as a vertical tab list? Is that feasible?

Image

DavidHJong avatar Mar 08 '25 04:03 DavidHJong

That solution would be great, except the order of the tabs in that dropdown menu appears to be random, or else follows some ordering rule which is not apparent to the user. There is another issue about this. The order of the tab names in that pull-down should be static and follow the order in which they were spawned. Instead, it appears to be random and shuffles over time.

Here's the other pertinent issue https://github.com/dbeaver/dbeaver/issues/5400

(also @DavidHJong if I'm understanding the issue correctly your screenshot is not quite correct, since we're talking about the open SQL editor tabs, and the pulldown menu for the open editor tabs which cannot fit on screen, not the columns in the results tab)

iron0012 avatar Mar 08 '25 16:03 iron0012

You make a good point, @iron0012. I originally interpreted this post as requesting vertical arrangement of all tabs, not just query tabs specifically. In my opinion, arranging only query tabs offers limited benefit when working with multiple schemas and tables simultaneously. Since query tabs function similarly to schema and table tabs in the interface, my screenshot demonstrates the same concept, even though it contains numerous column tabs. What do you think?

DavidHJong avatar Mar 10 '25 06:03 DavidHJong