vscode-filtertext icon indicating copy to clipboard operation
vscode-filtertext copied to clipboard

Command history

Open datenreisender opened this issue 8 years ago • 8 comments

It would be helpful to have a history of the previous used commands. Even better if the latest command was showed as the default.

datenreisender avatar Nov 11 '16 07:11 datenreisender

I've tried to prototype this but its not very convenient: vscode does not seem to have 'combo' box yet, its either lets you enter freeform input or pick from a list but not both. One way to work it around is to always show fake first history entry a la 'Enter your command here' but then user would need to pick it and proceed with entering command..not cool

boguscoder avatar Apr 08 '17 04:04 boguscoder

depends on this bug

boguscoder avatar Apr 08 '17 04:04 boguscoder

My PR https://github.com/yhirose/vscode-filtertext/pull/4 has the 'save the last used command' as a quick hack until history might be added.

joerohde avatar Jul 19 '17 15:07 joerohde

Any developments on this?

iAbadia avatar May 02 '19 13:05 iAbadia

@iAbadia, if the comment by @boguscoder is still correct (vscode does not seem to have 'combo' box yet), it seems not easy to make satisfying UI. But if vscode support 'combo box', we can start implementing this feature.

yhirose avatar May 02 '19 22:05 yhirose

I don't know enough about VS code development to know what you mean by a combo box but, wouldn't be the input box that appears when you search (F1) for commands or the "recently opened" (Cntrl+P on Windows) enough for a history of commands?

I guess the question now is: Is that kind of UI feature available for Extensions?

image

iAbadia avatar May 07 '19 10:05 iAbadia

@iAbadia, we are not talking about the combobox you mentioned, but the 'combobox-like' widget which can be used in VS Code extension development. showInputBox (input box) and showQuickPick (list box) are available in the extension APIs. But there is no 'showInputBoxAndQuickPic`. I feel many VS code extension developers want the API though...

yhirose avatar May 07 '19 22:05 yhirose

Have you tried asking how this might be possible on the VS Code developers slack?

quinncomendant avatar Jun 12 '22 18:06 quinncomendant