obsidian-wielder icon indicating copy to clipboard operation
obsidian-wielder copied to clipboard

Load other Vault notes that contain Clojure

Open ngsilverman opened this issue 1 year ago • 0 comments

I just started using the Wielder plugin and I'm loving it. Many kudos @victorb!

Proposal

Today I was using it to prototype a plugin idea of my own, and as the code grew I found myself wishing for a way to break it up, while remaining within Obsidian. Essentially what I'm proposing is a built-in function that can "load" an arbitrary Vault note. Loading a note would consist of evaluating each Clojure code block it contains in the current context.

The function itself may look something like:

(*load "[[clojure/libraries/foo]]")

This could leverage Obsidian links to benefit from the existing autocomplete and make the paths easy to understand given the context. Wielder is already awesome, and I think this simple change could turn Obsidian into a very capable ClojureScript literate programming environment.

What I'm asking for

I would be happy to work on this and attempt to put a working Pull request together. However, before I get started I'd like to know if @victorb or other people from the community that may stumble onto this have any feedback or pointers.

ngsilverman avatar Oct 11 '23 03:10 ngsilverman