Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justyns/trilium-scripts
scripts and utilities for Trilium
https://github.com/justyns/trilium-scripts
Last synced: about 1 month ago
JSON representation
scripts and utilities for Trilium
- Host: GitHub
- URL: https://github.com/justyns/trilium-scripts
- Owner: justyns
- License: gpl-3.0
- Created: 2023-09-02T09:00:56.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-06T09:15:51.000Z (over 1 year ago)
- Last Synced: 2024-08-02T06:13:15.218Z (4 months ago)
- Language: JavaScript
- Size: 310 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-trilium - command-palette - palette](https://img.shields.io/github/last-commit/justyns/trilium-scripts) (⚙️ Widgets)
README
# trilium-scripts
Scripts and utilities for [Trilium](https://github.com/zadam/trilium).**Note**: I am new to Trilium, and am not a javascript dev. Please feel free to suggest improvements!
Below is a list of scripts included in this repo and what they do.
## add-gps-labels
This is a combination of a frontend and backend script. The frontend script requests your current gps location from the browser and then sends it to the backend script to update the label attributes on the current note. `#latitude=` and `#longitude=` labels are used to store the coordinates.
It doesn't work on the desktop Electron builds, but should work fine in mobile (and desktop) browsers. When running the script for the first time, you shoul get prompted to allow location permissions.
See for the original background.
## joplin-import-helpers
### joplin-convert-attribute-to-ctime
This isn't really specific to joplin, but was meant to handle the frontmatter Joplin uses when exporting markdown files with frontmatter.
It assumes you've already imported a directory of markdown files with frontmatter into Trilium. The frontmatter should also have been set on the imported notes as attributes. When this script is run, it looks for attributes named `created`, `updated`, or `modified` on each note. It will then update the note's created/modified timestamps and remove those attributes.
## command-palette
Experiment I am working on to add a command palette to trilium. It is very simple right now, but does work well enough that I'm using it with a few shortcuts:
![screenshot of command palette](command-palette/screenshot-cmd-palette.png)
I primarily wanted this because I found it difficult to do certain things on the mobile web interface and wanted an easier way to trigger other scripts.