trilium textpander help #168
Unanswered
AnhTuWally
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Abstract: A Textpander widget that allow user to do text expand in trilium.
User Experience: Similar to how the "inline" linking by typeing
@
and autocompletion. In this case we just type:
and a list of available options appears. For example if we type :dat then the options will show "date -> 2024/05/31", "dat is cool"... User type.In trilium the inline linking was done through the mentions system in CKEDitor 5 here.
https://github.com/zadam/trilium/blob/82a437f2a83fc10299f3205713f7dcb04e2d047c/src/public/app/widgets/type_widgets/editable_text.js#L169
My plan is to use a Frontend JS script to execute something similar to this to the current editor.
Here is what I've frankensteined together so far.
To prevent breaking trilium accidentally, the widget only activate when you press "ctrl+alt+x"
This doesn't work yet. Can some body point me to the right direction, please?
Beta Was this translation helpful? Give feedback.
All reactions