How do i make a always executed script within trilium? #6729
Replies: 2 comments 2 replies
-
Hi @DuckersMcQuack! I'm Dosu and I’m helping the Trilium team. Trilium doesn't support scripts that run automatically every time a note is loaded or rendered by default—scripts typically run only when you press "play" or at global events like startup. However, you can achieve always-executed behavior using custom widgets. If you create a JS frontend note that extends For backend scripting, Trilium supports "custom request handlers"—backend JS code notes labeled with If you want to build a regex widget, start with a JS frontend note, extend To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
What you probably need are Render Notes „renderNote“ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to make regex easier for me to remember/learn, by making a note that has the "expression" example as the note name, and content the regex script will be executed on, but from what i can tell, it only executes on press of play, not every time the note is loaded/rendered
https://regexr.com/#native_link#
This is the page i tried to replicate functions of. I can't code myself properly or much at all myself yet, but i'm still super slowly learning, so i have copilot assist. It made a working script, but it only ran once.
the reason i made a "clone" in regex, was to make hyperlinks of all the symbols to other notes that explains the symbol further for easy fast what and why experience. Hyperlinks within the notes works just fine, but regex execution, not so much. Or doesn't trilium support that?
If i wanted to add a backend script for my own use, how would i add that? Within the docker image?
Beta Was this translation helpful? Give feedback.
All reactions