I want to write a keybinding to type something into a non-editor input box in VS Code, such as the query editor input box in the Search View or the Editor Find Widget.
I tried to use the "type"
command like so:
{
"key": ...,
"command": "type",
"args": { "text": "hello world" }
},
But that didn't do what I expected. It seemed to have no effect in the Search View's query editor input box, and with the Editor Find Widget's input box, it ended up typing the text argument into the editor itself instead, so I assume this command is just for typing into editors.
How can this be done? (ideally without the usage of extensions, but an answer using extensions is still acceptable) Or is it not possible at all?
I tried googling "github vscode issues keyboard shortcut "type" into input box
" and didn't see anything useful in the top search results. Neither for searching "is:q keyboard shortcut [vscode] type input box
" in Stack Overflow's search bar.