Order command palette results by most/recently used

Use case or problem

When I’m using plugins, all too often it happens that they have a similar name to built in functionality.
When I type “Temp” both Obsidian’s Templates and Templater show up. When I type “link”, I most often use Day Planner’s “link current note” rather than “follow link under cursor” which I already had memorized as hotkeyed.

Proposed solution

A preferences option to sort the command panel results by most used/most recently used commands.

Current workaround (optional)

Search for parts of words e.g. “ve fi” for “move file to another folder”, but it doesn’t always return the command I mean to use, and it’s a chore to learn.

Related feature requests (optional)

The same idea, but for quick switcher (opening notes rather than the command panel)


You could try pinning the commands you use the most too!


I often find that I will use the same command multiple times when performing a specific task.

Example: Center several table columns.

But this is not a task that I do every day, so pinning would be a greater annoyance than benefit.

Setting a hotkey for the command would perhaps work, but there are limited unique key combinations, and I would certainly have to look up the keypress as a reminder each session.

Seeing my most recent 10 commands would mean that repeat actions were easily accessible, and always up to date with the task at hand.

Other software, such as the DAW Reaper, use exactly this method.



Other IDEs like Jetbrain’s IDEs, Sublime, VSCode do the same, sort by last few recently used.

Alfred also improves on this workflow by repopulating the search term with it selected so it allows you two options:

  • type over to do a new search
  • hit enter and execute the last command

Here’s an example:


I think it would be useful and intuitive for this to behave the same as the Quick Switcher– Showing recent commands in order. Specifically commands accessed by the command palette, not commands used by hotkeys, buttons, etc.

This could also be a setting (order candidates alphabetically; order candidates by frecency; order by recency; order by frequency…).

I think it wouldn’t be hard to implement.

Another idea would be to let developers hook into the sorting via a plugin and the API.

1 Like

Is there still no solution to this?

If the core developers make an API for this, plugin developers can make different solutions for this, allowing for different behaviour.

This is already possible (making a plugin).


Just catching up on this. Is there a plugin that implements this currently? I have looked around and have not found anything?


The Switcher++ plugin can do this with the command “Command Mode” and can also show recently files in Quick Switcher with “Standard Mode”

1 Like

How did you get this to work with Switcher++?

I have opening Switcher++ in command-mode set to Ctrl+p, and I just want typing ‘pre’ or ‘prev’ to highlight ‘Toggle Live Preview/Source mode’. However, no matter how many times I use that command, ‘Go to previous tab’ remains the first, highlighted option, so it seems to me Switcher++ doesn’t reorder based on most/recently used.

Do I need to change a setting of Switcher++?

The command is also pinned, but those don’t quite work as one might expect. This FR “Pinned commands should always be at the top, even after searching for them” is about that.

I miss this feature so much… I am used to this in almost every editor