Configure hotkey & ribbon button for predefined vault search

I’m looking for a way to configure a hotkey that would insert a predefined search query into vault search. This command must switch to the Search tab and focus on the search input field when run, just like Ctrl/Cmd+Shift+F. I would also like to bind this command to the ribbon. How can I achieve this?

While one can achieve this with Templater, the plugin requires an active editor to run scripts.

You could bookmark a search:

And use GitHub - Vinzent03/obsidian-shortcuts-for-starred-files to open the bookmark. A hotkey can be set for it, and Commander can probably add an icon to the ribbon.

CleanShot 2024-12-04 at 10.13.49

You can only open the first 9 bookmarks, unfortunately, but maybe you could make it work.


There’s another bookmarks plugin that I want to try out more GitHub - namikaze-40p/obsidian-bookmarks-caller: This is an Obsidian plugin which can easily open bookmarks., but it doesn’t look like there are commands for individual bookmarks.

2 Likes

If I could assign a hotkey to a bookmark regardless of its place (1-9), this would be perfect. But this is an acceptable limitation–I will simply keep the hotkey’d bookmarks on top. Thank you!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.