Heya Mario, [[How to create keyboard shortcuts]] says that some actions require to be wrapped within a $navigator <https://tiddlywiki.com/#NavigatorWidget> widget. That is necessary for the following list of widgets and messages in order to work if used within global keyboard shortcuts, and tm-new-tiddler is in the list.
It didn't do anything at all before I put the <$navigator> in, which is needed to capture the global shortcuts. Aidan On Sat, Aug 3, 2019 at 6:46 AM BurningTreeC <hypnotizedkanga...@gmail.com> wrote: > Hi Aidan, does it work if you provide a storylist to the navigator widget > like > > <$navigator story="$:/StoryList"> > > ? > > Hey all, > >> >> I created a global shortcut that creates a new tiddler from a template. >> It works, except that I get this error: >> >> Uncaught TypeError: Cannot read property 'indexOf' of null >> >> I'm expecting to create a ton of tiddlers with the shortcut, so closing >> the error every time defeats the purpose. What would be the fix for the >> error? >> >> The action widget is tagged $:/tag/KeyboardShortcut, the key field is >> "alt+M", and the widget text is: >> >> <$navigator> >> <$action-sendmessage >> $message="tm-new-tiddler" >> $param="meaningTemplate" >> /> >> </$navigator> >> >> What did I miss? >> >> Thanks, >> Aidan >> > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tiddlywiki+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/158c5a09-32a2-4633-bf4d-e955a4a81d92%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/158c5a09-32a2-4633-bf4d-e955a4a81d92%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAJu7H0Yx2YG_viSgO_K2xnKHioZa%2B5VwRiZNB8Amfqor5WbL-A%40mail.gmail.com.