Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support recent commands #735

Open
jtpio opened this issue Jan 2, 2025 · 0 comments
Open

Support recent commands #735

jtpio opened this issue Jan 2, 2025 · 0 comments
Labels

Comments

@jtpio
Copy link
Member

jtpio commented Jan 2, 2025

Problem

Users of the command palette may often run the same command.

However when opening the command palette again the same set of commands is always displayed in the same order. And users have to search for the commands.

Proposed Solution

Have the CommandPalette offer an opt-in way to support recently executed commands.

For reference VS Code offers something like this:

image

With a setting to control the "number of recently used commands to keep in history":

image

So the Lumino CommandPalette could also expose a way to configure the history size. So downstream applications like JupyterLab could surface that in the setting editor.

This change should of course be backwards compatible.

Additional context

Some comments in jupyterlab/jupyterlab#4365 indicate we could add a frequency or "execution count" for each command item in the CommandPalette.

@jtpio jtpio added enhancement New feature or request status:Needs Triage labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant