generated from tjx666/vscode-extension-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] fallback vs. shared commands #45
Labels
enhancement
New feature or request
Comments
For example: "openInExternalApp.openMapper": [
{
"extensionName": ["jsxbin", "jsx"],
"apps": "Adobe Photoshop 2022",
},
{
"extensionName": "shared",
"apps": "MacVim"
}
], When I open |
Yes, like that. But of course with a special extensionName that isn't like to conflict; so something like noticeable like |
tjx666
pushed a commit
that referenced
this issue
Nov 28, 2022
This is also supported in latest version by extensionName |
This doesn't work for me: "openInExternalApp.openMapper": [
{
"apps": [
{
"shellCommand": "mvim --servername Code --remote-tab-silent '+chdir ${fileWorkspaceFolder}|call cursor(${cursorLineNumber},${cursorColumnNumber})|call feedkeys(\"z.\")' '${file}'",
"title": "MacVim"
},
{
"shellCommand": "vimr --remote-tab-silent --nvim '+chdir ${fileWorkspaceFolder}|call cursor(${cursorLineNumber},${cursorColumnNumber})|normal z.' '${file}'",
"title": "VimR"
},
{
"shellCommand": "idea --line ${cursorLineNumber} '${fileWorkspaceFolder}' '${file}'",
"title": "IntelliJ IDEA"
}
],
"extensionName": "__ALL__"
}, It's not possible to have |
You want all the apps to be executed? Anytime pr welcome. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now it seems that this extension supports a fallback: if I have
*
as theextensionName
and the current file's extension doesn't match any other rule, then this fallback rule works. That's great. (By the way, I didn't see that documented, so I had to guess and I was pleasantly surprised that it worked.)However, I'd also like to have a set of editors that apply to all extensions, even if there is a match. For example, I want to have MacVim as an option for all extensions. But if I'm invoking on an
md
file, I will only get my configuredMarkText
as a command.The workaround is for me is to duplicate the
MacVim
command under both themd
and the*
rules.So in addition to supporting a
*
rule, maybe there should be a_common_
or_all_
ruleThe text was updated successfully, but these errors were encountered: