TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
8.04k stars 1.19k forks source link

[IDEA] charcode macro to complement operator #6566

Open saqimtiaz opened 2 years ago

saqimtiaz commented 2 years ago

As discussed in https://github.com/Jermolene/TiddlyWiki5/issues/5309#issuecomment-1080522418 it might be useful to have a macro version of the charcode[] operator.

This would allow usage like this for example to add two closing square brackets: :map[addsuffix<charcode 93>addsuffix<charcode 93>]

As opposed to the operator version: :map[charcode[93]addprefix<currentTiddler>] :map[charcode[93]addprefix<currentTiddler>]

pmario commented 2 years ago

IMO related to: https://github.com/Jermolene/TiddlyWiki5/issues/6284 and https://github.com/Jermolene/TiddlyWiki5/pull/6295

pmario commented 2 years ago

I'm preparing a PR atm.