Vinzent03 / obsidian-advanced-uri

Advanced modes for Obsidian URI
MIT License
747 stars 44 forks source link

[REQUEST]: jump to a folder? #113

Closed msapplewatch closed 1 year ago

msapplewatch commented 1 year ago

I was wondering if this would be possible to ask for a advanced-uri command to jump to and focus an obsidian folder (rather then just a fie)?

this could be very useful for vault navigation and other purposes

thx so much for your consideration

Z

Vinzent03 commented 1 year ago

How do you open a folder in Obsidian? I don't know what you mean?

msapplewatch commented 1 year ago

thx!

I meant file folders where markdown files are stored (ie folders in the vault).

for example see image:

CleanShot 2023-02-16 at 18 12 44

so instead of a URI command to open and shoe a file.md I want to open .obsidian and show/focus on a specific value folder

does this make sense?

thx!!

Vinzent03 commented 1 year ago

I'm still confused, are you talking about a community plugin?

msapplewatch commented 1 year ago

Hi again

sorry no just normal obsidian or system folder. let me try to explain again.

currently advanced-uri can open and file and focus it ie:

obsidian://advanced-uri?vault=PKM&filepath=100-199%20Food/101%20Lib/%SystemClipboard%&viewmode=source&data=%OBS_data%&line=3

what I want is not to open and focus a note (.md file) but open and focus a folder (in the obsidian file browser):

CleanShot 2023-02-17 at 10 00 37

so in this case I launch the advanced-uri and it focuses the obsidian UI on that folder (inbox in the above example)

does that make more sense 😊?

Vinzent03 commented 1 year ago

So you don't want to open anything in a tab, but just focus a folder in the file explorer?

msapplewatch commented 1 year ago

yes, to see what's in that folder, thank you again for your time and consideration

zeltak commented 1 year ago

Just saw that now you can bookmark folders and when executed they go back and highlight the folder in the file browser! maybe supporting bookmarks in obsidian-advanced-uri could be the solution?

Vinzent03 commented 1 year ago

@zeltak Thanks for the tip. I've found now a way to focus on a item in the file explorere, but I'm unsure if that feature is really a new parameter worth. Instead using the bookmarks plugin might be the better solution. So that you can open your bookmark via uri by specifying the title you've set.

zeltak commented 1 year ago

yeah that could be great!

Z

Vinzent03 commented 1 year ago

Available in new release via the bookmark parameter. Read the docs here

zeltak commented 1 year ago

thx so much @Vinzent03 !

I just tried it but does not seem to work for me? im sure im doing something wrong on my side

I tried this:

obsidian://advanced-uri?vault=iPKM&bookmark=panel&openmode=tab

where my vault is iPKM and the bookmark is called panel

is this correct syntax?

Vinzent03 commented 1 year ago

Works for me, what exactly did you bookmark?

zeltak commented 1 year ago

well I tried with normal markdown, canvas, folder etc

none (to me) seems to work. any tips on how to debug this?

thx a lot!

Z

zeltak commented 1 year ago

ahh im an idiot :) , didn't encode properly works for me now

thx and sorry for the noise :D