Mat: decided to make your life a bit harder. There are updates!
https://saqimtiaz.github.io/sq-tw/editormagic-popup.html
- $:/plugins/EditorMagic/styles (new)
- $:/plugins/EditorMagic/editor-operations/insert-completion.js (new)
- $:/core/ui/EditTemplate/body/editor (updated)
- EditorMagic/_Popup (updated)
The first 3 you can just import as is. They shouldn't cause any problems
even if you don't immediately merge the last one.
EditorMagic/_Popup, all changes are just inside the code the button (for
the completed link). So you can copy that part.
<$list filter="""[all[tiddlers]prefix<fragment>]""" variable=name>
<$button class="tc-btn-invisible tc-tiddlylink">
<$text text=<<name>>/>
<$action-sendmessage
$message="tm-edit-text-operation"
$param="insert-completion"
text={{{[<name>addsuffix<trigger-end>]}}}
precursor=<<fragment>>
/>
</$button>
<br>
</$list>
Note the message with the new $param *insert-completion*.
Example:
completing *[[$:/th* to *[[$:/themes]]*
the parameters to the message should be:
text: $:themes]] i.e. fragment + trigger-end
precursor: $:/th i.e. fragment
This should make the insertion of the completed text, easier, more
efficient as well as place caret at the correct place.
Cheers,
Saq
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/49dcbc7f-2992-4b48-a5ab-9ceb1084ae8do%40googlegroups.com.