Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would it be possible to have URIs for any section in settings? #110

Closed
YousufSSyed opened this issue Feb 8, 2023 · 10 comments
Closed

Would it be possible to have URIs for any section in settings? #110

YousufSSyed opened this issue Feb 8, 2023 · 10 comments

Comments

@YousufSSyed
Copy link

It would be great if I could access specific setting sections other than the ones list in the documentation. I visited some frequently that aren't listed there.

@Vinzent03
Copy link
Owner

What exactly do you mean with section? Like Behavior under Editor?

@YousufSSyed
Copy link
Author

Yes, as well as URI for community plugins and their sections.

@Vinzent03
Copy link
Owner

You can use the new settingsection parameter now.

@YousufSSyed
Copy link
Author

YousufSSyed commented Feb 12, 2023

@Vinzent03 I don't see the settingsection in documentation. I tried the following URIs but none of them work:

  • obsidian://advanced-uri?vault=Personal-Vault&settingsection=editor/behavior
  • obsidian://advanced-uri?vault=Personal-Vault&settingsection=editor
  • obsidian://advanced-uri?vault=Personal-Vault&settingsection=editor#behavior

Can you write documentation for it, including how to get the proper setting strings or IDs?

@Vinzent03
Copy link
Owner

Vinzent03 commented Feb 13, 2023

Oh sorry, seems like I forgot to deploy the latest doc version. You need both settingsid and settingsection. Fixed now!

@YousufSSyed
Copy link
Author

But how could I go to a specific setting subsection? Like display under editor?

By the way, can you add / enable a search bar in your documentation sites? It would make searching for things much easier.

@Vinzent03
Copy link
Owner

You pass the text of the heading as parameter value. In this case Display.

obsidian://advanced-uri?vault=myvault&settingid=editor&settingsection=Display

@YousufSSyed
Copy link
Author

That doesn't work for me. I also tried obsidian://advanced-uri?vault=myvault&settingid=editor&settingsection=Behavior but that only takes me to the top of the editor section.

@Vinzent03
Copy link
Owner

Are you on the latest version (1.32.0)? It works perfect for me.

@YousufSSyed
Copy link
Author

Oh ... now it's working now. I'll leave it at that.

Also, I think you should add an explicit example in the settings navigation page.

obsidian://advanced-uri?vault=<your-vault>&settingid=editor&settingsection=Behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants