You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be good to offer users next to switch-views also toggle-views. The switch-views are more a kind of playground for developers while toggle-views would be for normal users.
Programming of toggle-views
The switch-views can be used as base. Then reduce switch-views to those three shortcuts:
toggle-editor-1.lua
toggle-sidebar-1.lua
switch-views-(editor-↔-sidebar).lua
Then change the name of the shortcuts (see down below in Name of the shortcuts) and add three conditions (see down below in Condition of the shortcuts).
Name of the shortcuts Toggle between only editor and editor&sidebar Toggle between editor&sidebar and only sidebar Toggle between only editor and only sidebar
Condition of the shortcuts
Toggle between only editor and editor&sidebar
If only sidebar is visible do nothing.
In other words: If only editor or editor&sidebar are shown, then do ...
Toggle between editor&sidebar and only sidebar
If only editor is visible do nothing.
In other words: If editor&sidebar or only sidebar are shown, then do ...
Toggle between only editor and only sidebar
If editor&sidebar is visible do nothing.
In other words: If only editor or only sidebar are shown, then do ...
Document init.lua
Instead of sidebar_start = "show": sidebar_start = "hide".
Reasons:
The most people use Geany also for other formats, like TXT-documents. I made the experience that auto-sidebar is not good for me when using the shortcuts of switch-views.
I think it would be good to offer users next to
switch-views
alsotoggle-views
. Theswitch-views
are more a kind of playground for developers whiletoggle-views
would be for normal users.Programming of
toggle-views
The
switch-views
can be used as base. Then reduceswitch-views
to those three shortcuts:Then change the name of the shortcuts (see down below in
Name of the shortcuts
) and add three conditions (see down below inCondition of the shortcuts
).Name of the shortcuts
Toggle between only editor and editor&sidebar
Toggle between editor&sidebar and only sidebar
Toggle between only editor and only sidebar
Condition of the shortcuts
Toggle between only editor and editor&sidebar
If only sidebar is visible do nothing.
In other words: If only editor or editor&sidebar are shown, then do ...
Toggle between editor&sidebar and only sidebar
If only editor is visible do nothing.
In other words: If editor&sidebar or only sidebar are shown, then do ...
Toggle between only editor and only sidebar
If editor&sidebar is visible do nothing.
In other words: If only editor or only sidebar are shown, then do ...
Content of the document
hotkeys.cfg
Document
init.lua
Instead of
sidebar_start = "show"
:sidebar_start = "hide"
.Reasons:
The most people use Geany also for other formats, like TXT-documents. I made the experience that auto-sidebar is not good for me when using the shortcuts of
switch-views
.History
This issue is based on the knowledge of xiota/geany-tab-style#2 (comment).
The text was updated successfully, but these errors were encountered: