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)
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.
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.
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.
I frequently want to either open the same file or repeat a command using command palette, but have to use a full search each time. I want a more efficient way to redo a command.
Proposed solution
Make the command palette remember the order of items used, or provide recently used list as per quick sqitcher, such that frequent options are prioritised at the top in last used order. This is default in vscode and very handy for repeating palette commands.
Current workaround (optional)
None - full search / command search required.
Related feature requests (optional)
Search did not find any equivalent feature requests.
Additional Note
This feature request was changed to remove reference to quick-switcher also being in scope as recently used items, as this is already implemented.
Emphatic ditto. I believe Visual Studio Code, where I spend more of my day than I’d care to admit, prioritizes command palette items by frecency.
That second invocation feels a little clunky, even with the command fairly close to the top. I also find frecency particularly handy when repeating a command two or three steps back. That, too, feels clunky with a static sort.
Pinning commands is a handy stopgap! But it’d be nice to know Obsidian can take care of it for me.
In Obsidian 1.8.3, Recently used commands will appear at the top of the command palette. Some information about recency is used during the ranking process of results, but not much, therefore I’ll leave this FR open.