The message parameter of action-confirm cannot pass complex text

I’m not sure if this is by design or a bug. Sometimes when I need to perform a bulk modification on tiddlers, I’ll ask the user to confirm the action and show them which tiddlers will be modified or deleted. I can easily list these tiddlers using a filter, but it seems the message variable can’t accept wikitext or even just tiddler titles. Is this something that could be improved? I know a modal can be used to achieve this, but I think this approach would be simpler.

Why not display the list of items that “will be modified” then have a button eg Apply to make it happen below?, within this you can confirm once for the button, or once for every item.

This is one solution. For example, when we change a tiddler’s title, the Relink plugin shows we all the tiddlers that will be affected below. However, if the action-confirm widget could accept complex text, I think that would be a simpler way to do it.

I think the limitation to the message is because its using a browser message dialogue and they are designed that way. It is possible to use the alert mechanism or build your own with modals

However be aware if you do set up a confirmation that occurs for every title if you make a mistake you may have to cancel hundreds of confirmations, this will not make you happy.

  • As a result I usualy present everything for review and only have one are you sure confirmation.

As Tony pointed out we are using the browser confirm dialogue. The text there is intentionally not styleable. The only thing that could be added are linebreaks.

<$button>
<$action-confirm $message="""line 1
line 2
""">
Show multi line dialogue
</$action-confirm>
</$button>

Hope that helps