decaf-dev / obsidian-vault-explorer

Explore your Obsidian vault in visual format
https://vaultexplorer.com
MIT License
118 stars 4 forks source link

[FR] Ability to embed vault-explorer groups into notes #368

Open JohnGemstone opened 1 month ago

JohnGemstone commented 1 month ago

Hello, I'm interested in being able to access Vault-Explorer views from within my folder structure via notes. This would save going to the side panel and selecting the correct group and view.

image

The easiest approach for the user might be to have them define group views from the side panel as normal then reference the view they would like to embed like so:

```vault-explorer
group: Reading
default: grid


It's quite a large feature but thought I'd share anyway.
Cheers!
JohnGemstone commented 1 month ago

Oh it was pretty easy to embed, will just need to figure a way to pass props and have the state update when the app is viewed in different contexts. Never touched svelte or obsidian plugins, but will have a stab at it. Will report back if I get something usable.

image

JohnGemstone commented 1 month ago

Hey so I got the feature working ok!

https://github.com/user-attachments/assets/835ec6e3-30b7-4789-b1a4-04518ea63c14

One limit which I've come across is not being able to have multiple embeds of different groups on the same note, something to look into in the future.

Anyway if you're interested, I'll make a pull request for you to take a look at.

Cheers