Skip to content
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

Provide a configuration to modify editorLangId == 'mel' in when column when configuring hotkeys #35

Open
oglops opened this issue Apr 12, 2023 · 1 comment

Comments

@oglops
Copy link

oglops commented Apr 12, 2023

I am setting file association in vscode for *.mel to c as a trick to use all the features like ctrl+alt+o and jump to mel global proc definition by ctrl+click, but it stops me from being able to use the hotkeys. As in vscode the shortcuts configuration page, the When column is hardcoded to be editorTextFocus && editorLangId == 'mel'

Screenshot from 2023-04-11 23-26-50

Screenshot from 2023-04-11 23-31-29

I hope the plugin configuration can offer a setting which allows me to choose what langid to use for the when, so that even for c language type, I can still use hotkey to send code to maya.

@oglops oglops changed the title Provide a configure to modify editorLangId == 'mel' in when column when configuring hotkeys Provide a configuration to modify editorLangId == 'mel' in when column when configuring hotkeys Apr 12, 2023
@oglops
Copy link
Author

oglops commented Apr 12, 2023

I suddenly realized that I can customize this via vscode shortcuts json config, so

    {
        "key": "shift+alt+m",
        "command": "mayacode.sendMelToMaya",
        "when": "editorTextFocus && editorLangId == 'c'"
    },

this would work as a temp workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant