# How to add bookmark or search query to ribbon or command palette?

**URL:** <https://forum.obsidian.md/t/how-to-add-bookmark-or-search-query-to-ribbon-or-command-palette/90835>\
**Category:** Help\
**Tags:** search, bookmarks\
**Created:** [November 1, 2024, 3:03pm UTC](https://forum.obsidian.md/t/how-to-add-bookmark-or-search-query-to-ribbon-or-command-palette/90835 "2024-11-01T15:03:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![churnish](https://forum.obsidian.md/user_avatar/forum.obsidian.md/churnish/32/89588_2.png) [@churnish](https://forum.obsidian.md/u/churnish)\
**Post date:** [November 1, 2024, 3:03pm UTC](https://forum.obsidian.md/t/how-to-add-bookmark-or-search-query-to-ribbon-or-command-palette/90835/1 "2024-11-01T15:03:39Z")

</div>

Given Obsidian’s lack of an [“All Notes” folder](https://forum.obsidian.md/t/flat-view-folder-toggle-mode-to-only-show-files-in-explorer-pane/4637), to see all notes listed in reverse chronological order, I rely on a workaround: `path:/` search query that I have bookmarked. I’d like to add this bookmark to the ribbon, for easy access on both desktop & mobile. [Commander](https://obsidian.md/plugins?id=cmdr) would allow me to add such shortcut but it requires an appropriate Command Palette command to be had 😕

But perhaps there’s a better solution here altogether I’m not seeing hence me sharing the entire context.

I had tried using plugins for this purpose such as _Recent Files_ & _Chronology_ but I found the `path:/` method to be the most simple & reliable.

---

<div class="post-metadata">

**Author:** ![anon45210282](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/d6d6ee/32.png) [@anon45210282](https://forum.obsidian.md/u/anon45210282)\
**Post date:** [November 1, 2024, 3:11pm UTC](https://forum.obsidian.md/t/how-to-add-bookmark-or-search-query-to-ribbon-or-command-palette/90835/2 "2024-11-01T15:11:27Z")

</div>

My ploy for this is to pin such queries (in notes, of course) to the sidebar so they are always available:

 ![path](https://forum.obsidian.md/uploads/default/original/3X/5/1/51b906d42c90231cde5d0040045d96e975efecea.jpeg)

---

<div class="post-metadata">

**Author:** ![churnish](https://forum.obsidian.md/user_avatar/forum.obsidian.md/churnish/32/89588_2.png) [@churnish](https://forum.obsidian.md/u/churnish)\
**Post date:** [November 2, 2024, 8:26am UTC](https://forum.obsidian.md/t/how-to-add-bookmark-or-search-query-to-ribbon-or-command-palette/90835/3 "2024-11-02T08:26:43Z")

</div>

Smart! I’ll give it a try, thanks! How many notes do you have in your vault? Could this introduce any lag? 🤔

Edit: unfortunately, this only sorts notes alphabetically.

---

<div class="post-metadata">

**Author:** ![blue\_emperor](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/9e8a1a/32.png) [@blue\_emperor](https://forum.obsidian.md/u/blue_emperor)\
**Post date:** [November 2, 2024, 11:46am UTC](https://forum.obsidian.md/t/how-to-add-bookmark-or-search-query-to-ribbon-or-command-palette/90835/4 "2024-11-02T11:46:53Z")

</div>

You can use [Obsidian URI](https://help.obsidian.md/Extending+Obsidian/Obsidian+URI#Open+search) to initiate searches:

`obsidian://search?vault=my%20vault&query=Obsidian`

You can also use [Advanced URI](https://publish.obsidian.md/advanced-uri-doc/Home) to open bookmarks:

`obsidian://adv-uri?vault=<your-vault>&bookmark=<your-bookmark-title>&openmode=tab`

Parameter values (vault = value, query = value, bookmark = value) have to be [URL encoded](https://www.urlencoder.io/), like `query=path%3A%2F`.

You can then launch these actions using markdown links in your note:  
`[This here is shown](obsidian://adv-uri?filepath=Home%20Index%2Ftoday)`

You can also map shell commands to Obsidian commands using [Shell commands](https://github.com/Taitava/obsidian-shellcommands) plugin. For example

Powershell  
`Start-Process "obsidian://adv-uri?filepath=test"`

Mac  
`open "obsidian://adv-uri?filepath=test"`

Linux  
`xdg-open "obsidian://adv-uri?filepath=test"`

---

<div class="post-metadata">

**Author:** ![churnish](https://forum.obsidian.md/user_avatar/forum.obsidian.md/churnish/32/89588_2.png) [@churnish](https://forum.obsidian.md/u/churnish)\
**Post date:** [November 3, 2024, 6:42am UTC](https://forum.obsidian.md/t/how-to-add-bookmark-or-search-query-to-ribbon-or-command-palette/90835/5 "2024-11-03T06:42:44Z")

</div>

Nice! The only downside is that the shell commands plugin doesn’t work on mobile.

---

<div class="post-metadata">

**Author:** ![churnish](https://forum.obsidian.md/user_avatar/forum.obsidian.md/churnish/32/89588_2.png) [@churnish](https://forum.obsidian.md/u/churnish)\
**Post date:** [December 4, 2024, 1:12pm UTC](https://forum.obsidian.md/t/how-to-add-bookmark-or-search-query-to-ribbon-or-command-palette/90835/6 "2024-12-04T13:12:45Z")

</div>

> [@Configure hotkey & ribbon button for predefined vault search](https://forum.obsidian.md/t/configure-hotkey-ribbon-button-for-predefined-vault-search/92692/2):
>
> You could bookmark a search: And use [GitHub - Vinzent03/obsidian-shortcuts-for-starred-files](https://github.com/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 plugi…](https://github.com/namikaze-40p/obsidian-bookmarks-caller)

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [January 1, 2025, 1:13pm UTC](https://forum.obsidian.md/t/how-to-add-bookmark-or-search-query-to-ribbon-or-command-palette/90835/7 "2025-01-01T13:13:17Z")

</div>

Closed on January 1, 2025, 1:13pm UTC

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