Skip to content

Support recent commands #735

@jtpio

Description

@jtpio

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions