I added a trans/template option.
If you want to try what I have so far. As always, be sure to have a backup. After importing, you will need to reload. You shouldn’t have to panic even if it throws a RSOE, since the excision code isn’t invoked until you click on the excise button. So you should be able to go in and delete
- $:/core/modules/editor/operations/text/excise.js
- $:/core/ui/EditorToolbar/excise-dropdown
To get back to the standard excise engine.
Recommended that you add a note to your front page about the excision code being overwritten, in case of changes during updates. My test with 5.3.0 worked OK. I’ve included a TransTemplate tiddler in case you don’t have your own template handy to try.
A quick explanation of the other options. You can use a poorly named Tiddler ExcisionTemplate (I plan to make this configurable). You can borrow (prefix) text, fields, and tags from it. This is handy if you’re doing a series of excisions where you want similar text. The “link to here” option puts a link at the top of the excerpt linking back to the original tiddler. The intention was if you wanted to divide an existing tiddler into multiple tiddlers linked together in a fashion similar to Stroll. The “Get title from first line” option allows you to title the new excerpt with the first line of text from the excerpt. It strips off exclamation marks at the start of text – this makes it easy to chunk header sections.
TransTemplate.json (212 Bytes)
excision-code-2023-07-05.json (8.0 KB)