I have returned to work on this since I now have the wiki auto-detecting the current window.name if available and updating the $:/info/startup-window-name or to “unnamed” if not available.
The difficulty I have is making a working action tiddler widget. action-setwindowname.json (1.8 KB)
<$button >
<$action-setwindowname $name="New name"/>
New name
</$button>
when the button is clicked I get
Internal JavaScript Error
Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
ReferenceError: windowName is not defined
Once I have the action widget working;
- I will save a custom window name in $:/config/window.name
- Create a startup action to see if the window.name in $:/info/startup-window-name matches $:/config/window.name
- if not set the window name to the value in $:/config/window.name
- Provide an optional prompt before changing the window name.
Any developer support appreciated.