TIL in Leo: environment variables are expanded in @url parameters

22 views
Skip to first unread message

jkn

unread,
Mar 17, 2024, 7:35:49 AM3/17/24
to leo-editor
I tried this, fully expecting it to fail, but it works!

@url file://${SEAFILE}/rest/of/path/to/my_file

FWIW: I have recently switched from using Nextcloud to sync between machines on my local network, to Seafile. I have had a lot of trouble with Nextcloud in recent months; Seafile seems to do the one thing it is supposed to, with much less fuss than Nextcloud.

So on each machine (Windows/Linux) I have an environment variable SEAFILE that points to the top shared director on the local filesystem. This has been working for @file nodes, but I hadn't expected it to also work for URIs.

Hurrah and Thanks!

https://www.seafile.com   # Open Source File Sync&Share and Document Collaboration Platform

Edward K. Ream

unread,
Mar 17, 2024, 10:29:30 AM3/17/24
to leo-e...@googlegroups.com
On Sun, Mar 17, 2024 at 6:35 AM jkn <jkn...@nicorp.f9.co.uk> wrote:
I tried this, fully expecting it to fail, but it works!

Heh. I would have expected it not to work, but then, what do I know :-)

Edward
Reply all
Reply to author
Forward
0 new messages