I’m making a button that creates a new editmode tiddler but I want the focus to be set on the title, just like when clicking TWs native New tiddler button. I’m guessing I should use tm-focus-selector but what’s the $param? (btw, the linked doc says there is no $ prefix on param but the core code does seem to use it)
Various core code tiddlers imply that $param should be some css class (e.g tc-titlebar tc-edit-texteditor - which doesn’t work) but the values used in the core are constructed in some cryptic ways…
As noted there, it is [intended to become] a small plugin for the community to easily create sibling tiddlers, i.e a tiddler tagged with the tag you’re fiddling with.
So, again, I’m hoping that the created editview tiddler can have its title field focussed, just like when creating new tiddlers.
Somehow @TW_Tones solved this problem in the “reimagin[e] Tags” package. I don’t think there’s a hosted version… and I’m having trouble finding a link to it. But I do have a version (not sure if it’s the most recent) operating at my quick-demo site. Click on a tag, and there are a bunch of things in the dropdown menu, including “new tiddler with this tag” — and selecting that does put the title text-entry in focus.