How to handle closing all tiddlers - leaves a blank screen

Ideas please of how to handle the situation when a user closes all the tiddlers in the story river. This is an issue for users unfamiliar with TW. They are left with a blank screen which is worse if there is no sidebar either.

Seems there may be two options:

  • Re-open the Default tiddlers when the last tiddler is closed
  • Create some sort of splash screen with, say, a ‘Home’ icon that opens a specific tiddler

Are there other ways of handling this scenario, perhaps others have examples?

see Hidden Setting: Content to be displayed for empty story

-e

2 Likes

me reading this thread: “oh, that’s neat, I should use that”

me opening $:/config/EmptyStoryMessage:
"oh look: modified: 20240630150009637"

fwiw, my EmptyStoryMessage (across multiple TW now I check) are all basically variations on

You've got nothing open. 

Consider going home?

{{$:/core/ui/Buttons/home}}

How long ago was that added? Guess I can now remove TW5-Respawn.

Having an empty river trigger an action beyond just “show this alternate content” is actually kind of neat.

Not neat enough that I’d install a plugin for it, but neat enough that if it was in core (I’m not suggesting it should be, just the hypothetical “what if it already was”) then I’d definitely use it in some public sites I’m contemplating

see Colour handling improvements by Jermolene · Pull Request #8702 · TiddlyWiki/TiddlyWiki5 · GitHub

Specifically, the section discussing “Background Actions” (a new general purpose mechanism):

Background actions that are triggered whenever there is a change to the results of a specified filter

This would enable you to define actions that are automatically triggered if [{$:/StoryList!!list}is[blank]].

It’s not clear when this will be ready to be added to the TWCore, but maybe TW5.4.0 or TW5.4.1?

@jeremyruston … care to comment?

-e

2 Likes