Re: [twdev] Hook defined in startup module not working

2020-01-31 Thread bimlas
For readers of this thread, I've opened the pull request: https://github.com/Jermolene/TiddlyWiki5/pull/4434 -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [twdev] Hook defined in startup module not working

2020-01-31 Thread Jeremy Ruston
Hi Bimlas Apologies, you’re correct, the tm-rename-tiddler event isn’t used by the core (it’s only required when renaming a tiddler directly, rather than via the edit template). But the navigator widget certainly should be invoking the renaming/relinking hooks, and I’d be happy to see it

Re: [twdev] Hook defined in startup module not working

2020-01-31 Thread bimlas
I tried importing the above example into the Text-Slicer edition and after slicing the example text when I turned on the toolbar (which sends the "tm-rename-tiddler" message) in the left sidebar and renamed the tiddler there, in the console "RENAME" appeared, so the hook is executed here, but

Re: [twdev] Hook defined in startup module not working

2020-01-31 Thread bimlas
Jeremy, The "th-renaming-tiddler" hook is invoked by "$:/core/modules/wiki-bulkops.js" -> "renameTiddler()" . This function is called by the "

Re: [twdev] Hook defined in startup module not working

2020-01-31 Thread Jeremy Ruston
Hi Bimlas The th-renaming-tiddler hook is intended to be invoked for every tiddler that is renamed, with the th-relinking-tiddler hook just being invoked for any relinking operations required as part of the rename. If the th-renaming-tiddler hook is not being invoked then I think there must be

[twdev] Re: Hook defined in startup module not working

2020-01-31 Thread bimlas
I've found the problem: the tiddler I wanted to rename was not listed in othe tiddler's fields (neither in the "tags" nor in the "list" field), so the hook didn't executed and therefore the messages didn't appear. Can I create hooks that will be executed anyway when renaming, even if they have

[twdev] Hook defined in startup module not working

2020-01-31 Thread bimlas
Dear all, I would like to execute events when a tiddler is renamed, but even though I wrote my startup module from the snippets of "$:/plugins/tiddlywiki/savetrail/savetrail.js", for some reason only the default text "Relinking 'X' to 'Y'" appears in the developer console, "RENAMED" and