Replies: 2 comments 8 replies
-
Update. I think I figured out how to do this using the scripting api. I can post the script here once I do some more testing, but basically I had three separate components:
I'm pretty impressed that I was able to figure out how to get this to work so quickly w/ Trilium, but I'm also wondering if there's a better way to do it? Is there a way for a frontend script to automatically run whenever a new note is created as an example? And is there a way for a frontend script to change the note's attributes/labels without having to call a backend script/custom http handler? |
Beta Was this translation helpful? Give feedback.
-
Sure @meichthys , I just created https://github.com/justyns/trilium-scripts and put it there for now. I have another version I'm working on along with some other scripts, so I figured having one repo to put them in might not be a bad idea. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to get the browser's current gps/location data and insert it into a note using the scripting api somehow?
I currently have a Tasker task on android that lets me take quick notes and saves them as a .md file storing my current gps/location data in yaml frontmatter. I'm probably going to try and convert this to use Trilium's api but I was wondering if there's a native way to retrieve this information instead when using the web frontend?
Specifically using the web interface on mobile, I don't think I'd need it from the electron app. My ideal flow would probably be a button on the sidebar that I can click and have it prompt for a short text and put it in a new note with the gps/location attributes pre-filled.
Beta Was this translation helpful? Give feedback.
All reactions