Any way to run a different extension via :
followed by its Command ID?
#9475
Unanswered
alastairsounds
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Wanting to utilize the functionality of an extension called "JSON Path Status Bar" (link) in a macro to write some documentation. Have to repeat a handle of actions that could potentially be put in a macro. Ideally I can find a way to do the following, but I'm missing a feature to call the extension by its Command ID.
Macro overview:
/foobar
+ Enter:vscode execute "extension.statusBarJSONPath"
gT
to navigate to previous tabp
to paste the JSON Path (looks likefizz[3].buzz[0].foobar
) into a markdown filegt
to navigate back to .json fileI'm aware I can create a mapping of something like
{ "before": ["<Leader>", "y"], "commands": ["extension.statusBarJSONPath"] }
in the settings, but something in my head says it's possible via vim's command line and I just don't know what it's called. Would be great to know for future macros that also need a one-time solution that can be called via command ID. Any help?Beta Was this translation helpful? Give feedback.
All reactions