yhirose / vscode-filtertext

Filter Text extension for VS Code
MIT License
30 stars 9 forks source link

Command history #2

Open datenreisender opened 8 years ago

datenreisender commented 8 years ago

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

boguscoder commented 7 years ago

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 commented 7 years ago

depends on this bug

joerohde commented 7 years ago

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.

iAbadia commented 5 years ago

Any developments on this?

yhirose commented 5 years ago

@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.

iAbadia commented 5 years ago

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

yhirose commented 5 years ago

@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...

quinncomendant commented 2 years ago

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