Dev assistance to improve excise for Markdown and other type tiddlers

When using excise to create new tiddlers they do not get the same type field as their source, if the button even appears. The result is mal formatted text until the resulting tiddlers type field is changed.

  • The details are all provided below to make this a moderately simple exercise.

To make the excise button for Markdown and other type tiddlers it needs;

  • The buttons condition changed $:/core/ui/EditorToolbar/excise-dropdown
  • The excise javascript that creates the excised tiddler to include the current tiddlers type field in the new tiddler.
    • $:/core/modules/editor/operations/text/excise.js
  • This will subtly change the current behaviour some may have relied on.
    • I am not sure if we should provide a second excise button
    • But perhaps we can start with an edited one.

As discussed here;

  • I think there is a strong argument that this will be an improvement to the excise button, that can then be made available on other tiddler "type"s, because the new tiddlers respect the source tiddlers type.

Post script:

  • The current excise button and excise script was not available on non tiddlywiki tiddlers (type blank or type text/vnd.tiddlywiki) so this change is unlikely to cause backwards incompatibilities;
    • Unless they used tm-edit-text-operation the excise parameter and used different tiddler types.

Requests like this one should be at GH. If posted here they may be read and forgotten.