I have developed several commands as part of a package Foo
and have given each command a caption of Foo: [command]
in my .sublime-commands
file. Is there a way I can open the command palette already prefilled with Foo:
to more easily search my commands in the command palette? I would like to ultimately trigger this with a key binding.
How to prefill the command palette?
pruppert
#1
0 Likes
deathaxe
#2
Maybe …
{ "keys": ["the key binding"], "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Foo: "}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html", "match_all": true },
]
},
It would enable the binding within text.html
scope and display command palette prefilled.
2 Likes