Well, I am unable to create a keyboard shortcut that allows me to make auto-closing square brackets. Is this an intentional TW feature to protect from any sort of soft-locking, so to speak?
This is what I have tried so far:
"title": "¢:/core/ui/EditorToolbar/Comment",
"tags": "$:/tags/EditorToolbar",
"text": "
<$action-sendmessage
$message="tm-edit-text-operation"
$param="wrap-selection"
prefix='['
suffix=']'
/>
",
"caption": "sq. bracket Keyboard Shortcut",
"condition": "[<targetTiddler>!has[type]][<targetTiddler>]",
"shortcuts": "["
Sorry about the (technically incorrect) JSON formatting, that’s just what I figured would give the most info in the least amount of characters.
oh, and don’t mind the ¢:/
, that’s just how I categorize my own system tiddlers, or my “¢ustom tiddlers”, TW sees it as just normal tiddlers, so it doesn’t seem to be any trouble.
Am I doing something incorrectly? my other shortcuts are identical to above and work fine, just not for the bracket keys (so far as I have tested, anyways.)
I’d like for a way to make self-closing brackets, and quotation marks, so any help is appreciated.
EDIT: Oo, actually bonus question (sorry)- is there a way to prevent the wrap-selection param from un-typing the characters if pressed a second time but still place the cursor between the added characters?
EDIT-2: I did also try using a modifier key along with the [
key, specifically the shortcut alt+[
but that also did not work.