I don’t know javascript/python to be able to use it as a way to do some useful stuff from CLI so I am wondering if something like custom.ps1 or custom.sh is possible or if there is any other way to be able to call some code from a macro or have it automatically run at logseq start?
Some practical examples:
- Every time Logseq starts I would like to remove all
collapsed::true
from all Pages and Journals; - I want to create a symlink in /pages for today’s journal and insert it’s name in
:default-home
section of config.edn so that G H would work in Logseq;
- I want to be able to perform a Global Regex Search and Replace without resorting to VSCode;
- I want to replace
:default-templates
template with a template for each day of the week, Holyday, vacation, first day of Month, etc;
- I want to be able to “link” Scheduled/Deadline Tasks with the OS Notification System and also add Reminders in the OS, maybe even sync the Logseq Calendar with the OS Calendar;
… etc.
I have encountered many more situations where I would have liked to be able to either have a CLI function run at Logseq start or be able to call such a function from a Macro.
I only wish that such a thing was available in Logseq so that it can be more tightly interconnected with the OS.