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)

2 Likes

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

1 Like

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.

2 Likes

+1!

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: