How to make gtk HPaned hide one side if pane clicked? - gtk

I ran several programs before where there is a paned widget with an arrow on its pane. Clicking the arrow hide the side to which the arrow was pointing. I found no way to achieve this in Gtk. any help please?

A quick way to do it is to put a GtkExpander in one side or both sides of the GtkPaned.

Related

How to permanently hide bottom panel?

I know about shortcut Control + J but this hides the panel only for the time when I am coding. During compilation bottom panel reappears and terminal outputs its contents. Is there a way to hide the panel permanently?
The only thing I can think of is that you resize the panel to its minimal expression and add this to your settings.json:
"workbench.panel.opensMaximized": "never"
By looking at the options under "workbench.panel" I don't think there's a way to permanently hide it.
You could also move it to the right or left if that suits you better with:
"workbench.panel.defaultLocation": "right"

How to detach Outline from Explorer

Problem: Detaching the Outline section from Explorer and moving it to the right side.
Tried: right-clicking, changing the settings - cannot find where and how the Outline section be detached from Explorer.
Question: is it possible to detach the Outline Panel from Explorer Panel?
Is there another extension, which the same functionality as Outline, which could be placed on the right side?
Thank you!
This should be supported directly in VSCode 1.64 (Jan. 2022), with the new side panel.
New Side Panel
This milestone, we introduce the Side Panel, a new surface in the workbench to house views from the Side Bar or the bottom Panel appearing opposite the Side Bar.
Unlike the historical ability to move the bottom Panel to the left or the right of the editor, the new Side Panel works in addition to the bottom Panel so you can see more sets of views at once.
To use the Side Panel, you'll need to move some views over to it.
Based on one of our most upvoted feature requests, you might want to move Outline from the Side Bar to Side Panel.
You can do this by dragging and dropping the view into the Side Panel.
If the Side Panel is not open, just like the bottom Panel, dragging a view to the edge of the editor area, will pop it open.
Alternatively, you can use the Move View command for something more keyboard friendly.
Moving Outline View to the Side Panel:
Yes you can, click on the Outline Title Bar and you can move it to any other panel, even the bottom Problems/Terminal panel.
You don't need any special extension for it. Almost all panels can be moved around in VSCode
You cannot have a Floating Window however.
You also Cannot have Two Sidebars
If you want to have the sidebar to the right go to View - Appearance - Move Side Bar Right
As of now, no you cannot have two sidebars, this is the issue tracking that feature.
I can suggest an alternative, you can move the outline to the bottom panel, where the terminal is so that you can have both at the same time but just not as a sidebar.
like this:
or like this but attaching two Bottom Panel tabs together.
Here is a Demo on how to do it
So after a lot of searching, I finally came up with my own solution. Apologies in advance for the poor screenshot quality. I used Microsoft's Steps Recording not realizing the image compression would be so poor.
First, open up a new terminal (Ctrl+Shift+`)
Make sure that the terminal tab is active in the panel. Right click the terminal name on the right-hand side and select "Move into editor area.
"
You can then right-click the now-tabbed Terminal in your editor space and select "Split down."
Your editor should look like the image below. However, we're not done yet! Here's where the magic happens. Open another terminal.
Things will look weird but this is going to work.
Click the "Outline" header in the sidebar and drag it into the bottom terminal panel:
Sidebar > (Outline) > Terminal Panel
Next, right-click on the tab bar of the bottom panel and select "Move Panel Right"
Et voila! You should how have a sidebar on the left, and Outline on the right, and a Terminal on the bottom!

Is it possible to duplicate the visual code side bar?

I don't know a way to duplicate the visual code side bar. I would find it useful to be able to open different views at the same time as it happens in eclipse Theila (both share same source code)
Eclipse Theila
See my newer answer at https://stackoverflow.com/a/69329503/836330
You can put another panel on the right, in addition to the Side Bar and Panel. And then drag various views into it.
Put the Panel on the right. Right-click on one of the headers, like "Terminal" and select `Move Panel Right".
Drag your "Outline" header into that right Panel.

VS Code: How to hide the bottom panel, no matter which tab I'm on?

I've found shortcuts to show/hide Problems (Cmd+Shift+M) or Output (Cmd+Shift+U), but these require two button presses to hide the bottom pane if it's not currently on those respective tabs.
How can I hide and show the bottom panel with a single button press, regardless of which tab is currently active? Similar functionality as Cmd+B, which hides the left-hand bar no matter whether Explorer, Debug etc. is active.
By default in VSCode Ctrl/Cmd+J shows and hides the Panel, no matter which one you are focused on.
Not a direct answer to your question, but if you're only interested in hiding the bottom panel then you can just hit either of these shortcuts twice: (i.e.
Cmd+Shift+M+M) once to take you to that panel, the second to hide that panel.
ctrl + `
This shortcut is responsible for showing/hiding the bottom panel that contains terminal, debug, output, etc.

is there a simple way to add Alt Text to the submenu arrows in GWT?

A client of mine is particularly keen on the Wave toolbar as a measure of accessibility, and will not accept any red errors for any reason.
The sub-menu arrow in GWT by default has no alt-text associated with it, causing a wave toolbar error when the menu is on screen.
Is there a simple way to add alt text to this image, or am I going to have to sub-class MenuBar?
thanks in advance