ralf3u created an issue (geany/geany#4251)
When coding in the editor I can press the shortcut `Toggle Sidebar` to let appear the sidebar, so I can see editor&sidebar side by side. The focus is then still in the editor. I can change the size of the width of editor&sidebar by moving the vertical separating line with the mouse. When I press again the shortcut `Toggle Sidebar`, then the sidebar disappears. I like this behavior. But sometimes I would like to toggle between only editor and only sidebar, so I see only one of both, editor or sidebar.
**Remarks** - The shortcut `Toggle between only editor and only sidebar` should not take care if the message window is enabled or disabled. - If the shortcut `Toggle between only editor and only sidebar` is pressed, then the shortcut should first verify if one of both (editor or sidebar) is disabled. If this is not possible to code because the editor can't be disabled, then maybe this could be a solution: If the shortcut `Toggle between only editor and only sidebar` is pressed, then the shortcut should first verify if either sidebar is disabled or sidebar has a width of 100%. - If the shortcut `Toggle between only editor and only sidebar` is pressed, and if there is a toggle, then the focus should also toggle (if it toggles to only editor, the focus or rather the cursor should be in the editor; if it toggles to only sidebar, the focus should be in the content area of the sidebar).
ralf3u left a comment (geany/geany#4251)
If the shortcut `Toggle between only editor and only sidebar` is pressed, then the shortcut should first verify if one of both (editor or sidebar) is disabled. If this is not possible to code because the editor can't be disabled, then maybe this could be a solution: If the shortcut `Toggle between only editor and only sidebar` is pressed, then the shortcut should first verify if either sidebar is disabled or sidebar has a width of 100%.
I forgot to mention the reason. The reason is: If editor&sidebar is visible, and then if the shortcut `Toggle between only editor and only sidebar` is pressed, then nothing should happen, because the shortcut should do exactly what the shortcut is saying: `Toggle between only editor and only sidebar`.
By the way, today I opened the issue 4252 at Geany. If someone will fix 4251, then it would be good to fix also 4252, because there is some kind of similarity.
ralf3u left a comment (geany/geany#4251)
If the shortcut Toggle between editor&sidebar and only sidebar is pressed, and if there is a toggle, then the focus should also toggle (if it toggles to editor&sidebar, the focus or rather the cursor should be in the editor; if it toggles to only sidebar, the focus should be in the content area of the sidebar).
This should be simple to code because there is already code that works for the shortcut "Switch to Editor" and for the shortcut "Switch to Sidebar".
Today I recognized that for this issue one need to change the memory for the width of the sidebar. The memory should be something like this: `IF memory width=100% THEN do not remember width of sidebar.` That would allow this scene: 1. condition: only editor is visible (so, no sidebar) 2. press the shortcut "Toggle Sidebar" (result: editor&sidebar are both visible) 3. press again the shortcut "Toggle Sidebar" (result: only editor is visible, so no sidebar) 4. press the shortcut "Toggle between only editor and only sidebar" (result: only sidebar is visible) 5. press again the shortcut "Toggle between only editor and only sidebar" (result: only editor is visible) 6. press the shortcut "Toggle Sidebar" (result: editor&sidebar are both visible)
github-comments@lists.geany.org