I found that for personal use, I want my TiddlyWiki to always open with the Open tab selected. Every time I had it on Recent when I saved & closed TW, I found myself manually switching back to Open.
Let’s change that so TW always expands the Open tab the next time you open your wiki!
EDIT: I have replaced my original solution with a smarter solution by Eric Shulman:
Eric's solution
- Create a new tiddler, which can be called anything you like and enter \define publishFilter() -[prefix[$:/state/tab/sidebar]] in the body text
- Tag the tiddler with $:/tags/Global
- Save the tiddler
- Save your wiki
If you are curious, see Eric’s post on how and why this works.
Original solution
- Go to Advanced Search for System tiddlers, either by:
- Clicking/tapping
and selecting the System tab, or
- Navigating directly to $:/core/ui/AdvancedSearch/System
- Clicking/tapping
- Enter $:/state/tab/sidebar in the search box. You will get an answer like
$:/state/tab/sidebar--123456789
. This number* could be unique to your wiki.
Copy the name of the whole tiddler like in the example I gave. - Create a new tiddler, call it whatever you would like.
I didn’t want to see this tiddler in search results, so I put it behind the$:/
namespace & named my tiddler $:/yan/Always open ‘Open’ sidebar tab on startup - Enter this into your new tiddler and replace the number with your wiki’s unique code <$action-setfield $tiddler="$:/state/tab/sidebar–YOUR_NUMBER_HERE" $value="$:/core/ui/SideBar/Open" />
- Tag your tiddler with $:/tags/StartupAction**, save the tiddler, and save changes to your TiddlyWiki.
* See documentation for the State Mechanism if you are interested in what this number means.
** More options are available for startup actions, but the basic type of action met my needs.
If you followed all the steps right, Open will be pre-selected the next time you open your TiddlyWiki, regardless of what tab you last had expanded when you saved your wiki.
Hope this helps any other TW beginners!