I've been thinking whether it wouldn't be good to add a config option for having sidebar tab labels oriented vertically when placed on left/right. Currently, when using more tabs, they either - have to be scrolled when placed at the top/bottom, or - a lot of horizontal space is wasted when placed on the left/right
I think this new mode is a reasonable compromise giving space for more tabs and not wasting too much horizontal space (and I think other editors do something similar already so it wouldn't be too unexpected for users). This patch is far from being complete, I'd just like some initial feedback regarding whether it's a good idea or not and whether there are any possible problems. There'd have to be a config option for this mode (to me, the simplest one is to add two more entries to the combo under Preferences->Interface->Notebook->Sidebar tabs such as `Left (vertical)`, `Right (vertical)`). If you want to test this patch, update Preferences->Interface->Notebook->Sidebar to left/right first. Some themes seem to add a bit too much padding to the tabs horizontally and some too little vertically so it might be necessary to do something about it in `geany.css`. I'm wondering if it's possible to do this only for this "vertical" mode, not affecting other tab modes. I've been thinking about setting a name for the notebook widget using `gtk_widget_set_name()` only for the vertical mode and clearing it for all other modes but I haven't tested yet if such a thing would work. Thoughts? The result would look something like this: <img width="1438" height="1508" alt="Screenshot 2025-07-28 at 22 56 50" src="https://github.com/user-attachments/assets/5209cf05-2b03-4f20-8444-23f5b89f2b98" /> You can view, comment on, or merge this pull request online at: https://github.com/geany/geany/pull/4388 -- Commit Summary -- * Vertical sidebar tabs -- File Changes -- M src/sidebar.c (27) -- Patch Links -- https://github.com/geany/geany/pull/4388.patch https://github.com/geany/geany/pull/4388.diff -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/4388 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany/pull/[email protected]>
