As the title said.
Three things I want:
- Auto collapse the sidebar when editing
- Auto expanded the sidebar when reading
- Auto enter the preview mode when editing
Already do some google work but seems no related topic
As the title said.
Three things I want:
Already do some google work but seems no related topic
Preview will remember the last setting so if you leave it in preview it will return, however in latest version see Hidden Setting: Show Edit Preview per Tiddler
The above can be achieved by adding actions to the edit, done and cancel buttons (or you own copies of these buttons showing on the Edit ToolBar)
$:/state/sidebar = yes or No
eg; tagged $:/tags/Macro
\define hide-sidebar-actions() <$action-setfield $tiddler="$:/state/sidebar" $value="no"/>
\define show-sidebar-actions() <$action-setfield $tiddler="$:/state/sidebar" $value="yes"/>
;Test
<$button actions=<<hide-sidebar-actions>> >hide</$button>
<$button actions=<<show-sidebar-actions>> >Show</$button>
However this solution will not cater for editing more than one tiddler at a time, it will do the last thing. Because editing is local to a tiddler and the sidebar global.
Buttons to add actions=
to
I will provide a solution soon.
Here is an interim solution;
It provides four alternate buttons and hides the existing ones behind more. See the button tooltip to tell which you are pointing at.
It works as per your request but needs conditions added to the actions to not show the sidebar until there is no tiddler being edited in the story?
editor-sidebar-buttons.json (6.0 KB)
Maybe you’ll like the SideEditor. I use it all the time.
IMO, regular 14"-15" screens are too small to show the tiddler and the editor and the sidebar side by side. Instead, the SideEditor makes these items overlap, and you bring an item to the front by hovering over it. Yes, this takes some getting used to.
One aspect is that it gives you perfect preview mode because the tiddler is left in viewmode as you edit it, so you really see the result.