zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.2k stars 1.9k forks source link

Can we add a new function: open the local directory?(Feature request) #3753

Open rio789 opened 1 year ago

rio789 commented 1 year ago

Describe feature

Can we add a new function: open the local directory?

Additional Information

No response

XXXJetfireXXX commented 1 year ago

I think a more detailed description might be required here. What do you mean exactly by "opening the local directory"?

rio789 commented 1 year ago

image What I mean is that as in the picture, the previous hyperlink is a normal url, and the next hyperlink points to a local directory. You can directly open the folder after clicking it. Personally, I think this can manage the local folder that is inconvenient to add to the document through trilium, which is convenient for recording and organizing.

meichthys commented 1 year ago

I haven't tested it, but this widget may do what you want: https://gist.github.com/laundmo/de1f386fac9f9e797fd77022d63967c9

meichthys commented 1 year ago

Just to follow up here, i wasn't able to get the widget working. It may only need some small tweaks, so ymmv

rio789 commented 1 year ago

Yes, it is what I want. But I don't know how to use it.

meichthys commented 1 year ago

@Allen307 and @zadam I think this is covered under #965 Hopefully if/when that gets implemented, we'll be able to reference other local files and applications.

meichthys commented 1 year ago

This widget does actually work - just be sure to use "JS Frontend" instead of "JS Backend" as the note type. https://gist.github.com/laundmo/de1f386fac9f9e797fd77022d63967c9