-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Support mapping from key to VSCode command in Cursorless keyboard mode #2026
Support mapping from key to VSCode command in Cursorless keyboard mode #2026
Conversation
ebb881a
to
1ad106d
Compare
ok @Kn0rk it has begun 😊 |
1ad106d
to
dc4f6d3
Compare
packages/cursorless-vscode/src/keyboard/KeyboardCommandsTargeted.ts
Outdated
Show resolved
Hide resolved
5558e8a
to
76c2bf0
Compare
"cursorless.experimental.keyboard.modal.keybindings.vscodeCommands": { | ||
// For simple commands, just use the command name | ||
// "aa": "workbench.action.editor.changeLanguageMode", | ||
|
||
// For commands with args, use the following format | ||
// "am": { | ||
// "commandId": "some.command.id", | ||
// "args": ["foo", 0] | ||
// } | ||
|
||
// If you'd like to run the command on the active target, use the following format | ||
"am": { | ||
"commandId": "editor.action.joinLines", | ||
"executeAtTarget": true, | ||
// "keepChangedSelection": true, | ||
// "exitCursorlessMode": true, | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@josharian @Kn0rk does this make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haven't taken it for a spin but reading it it makes sense
76c2bf0
to
71798a1
Compare
ok @AndreasArvidsson this one is ready for review. If you're happy, with it, let's give @Kn0rk and @josharian a chance for a quick look, as they've expressed interest in keyboard stuff (and supporting arbitrary VSCode commands was actually @Kn0rk's idea 😊) |
Looks good on a first glance. I will try to set it up on the weekend and give it a test drive. |
Sounds good; I'll keep stacking PRs off of this one and give you a branch to play with this weekend that has all my changes |
71798a1
to
c356f74
Compare
Checklist