You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add "recent commands' to Command Palette in commandline mode #8296
The idea is to store the history of the recent commands dispatched from command palette in command line mode. This history will be presented below the search bar. Typing in the search bar will filter the relevant history items (similar to the behavior we already have with filtering commands in action mode).
Usually when I use command palette in the command line mode I do it to run the same commands.
This feature will save me a lot of typing and prevent typos.
I am not sure what is the best place to store the history, and what are the security concerns if exist.
We can start with storing the history in memory for the current session.
We could certainly start with work with just stashing the recently used commands in memory while a window is open, and then once #7972 is implemented, we could actually write the mru list to disk and load it from there.
Implemented in-memory, MRU list (not set) of 10 (hard-coded).
There is no auto-completion, the history entries get filtered out, however-to invoke the entry you need to select the item:
Activity
skyline75489 commentedon Nov 17, 2020
I like this! VSCode will show recent commands history in its command palette and I found it useful.
zadjii-msft commentedon Nov 17, 2020
dang this is a good idea
We could certainly start with work with just stashing the recently used commands in memory while a window is open, and then once #7972 is implemented, we could actually write the mru list to disk and load it from there.
I'll stick this in #5400. Thanks!
Don-Vito commentedon Nov 17, 2020
Mike Griese (@zadjii-msft) - then I would like to work on this 😊
zadjii-msft commentedon Nov 17, 2020
Go for it!
Don-Vito commentedon Nov 18, 2020
Implemented in-memory, MRU list (not set) of 10 (hard-coded).

There is no auto-completion, the history entries get filtered out, however-to invoke the entry you need to select the item:
Add "recent commands" to Command Palette in commandline mode (microso…