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

Desktop: Remove cancelled keys in favour of explicit keymaps #3417

Merged
merged 1 commit into from
Jul 2, 2020

Conversation

CalebJohn
Copy link
Collaborator

To do this I took the default keymap and removed any keys that didn't seem useful. I'm not claiming that this is the perfect list of supported functions, so I'm open to any input @laurent22 @tessus

Below is the keymap as it exists before this change

basic

Left: "goCharLeft"
Right: "goCharRight"
Up: "goLineUp"
Down: "goLineDown"
End: "goLineEnd"
Home: "goLineStartSmart"
PageUp: "goPageUp"
PageDown: "goPageDown"
Delete: "delCharAfter"
Backspace: "delCharBefore"
Shift-Backspace: "delCharBefore"
Tab: "defaultTab"
Shift-Tab: "indentAuto"
Enter: "newlineAndIndent"
Insert: "toggleOverwrite"
Esc: "singleSelection"

default

Ctrl-A: "selectAll"
Ctrl-D: "deleteLine"
Ctrl-Z: "undo"
Shift-Ctrl-Z: "redo"
Ctrl-Y: "redo"
Ctrl-Home: "goDocStart"
Ctrl-End: "goDocEnd"
Ctrl-Up: "goLineUp"
Ctrl-Down: "goLineDown"
Ctrl-Left: "goGroupLeft"
Ctrl-Right: "goGroupRight"
Alt-Left: "goLineStart"
Alt-Right: "goLineEnd"
Ctrl-Backspace: "delGroupBefore"
Ctrl-Delete: "delGroupAfter"
Ctrl-S: "save"
Shift-Ctrl-G: "findPrev"
Shift-Ctrl-F: "replace"
Shift-Ctrl-R: "replaceAll"
Ctrl-[: "indentLess"
Ctrl-]: "indentMore"
Ctrl-U: "undoSelection"
Shift-Ctrl-U: "redoSelection"
Alt-U: "redoSelection"
fallthrough: "basic"

macDefault

Cmd-A: "selectAll"
Cmd-D: "deleteLine"
Cmd-Z: "undo"
Shift-Cmd-Z: "redo"
Cmd-Y: "redo"
Cmd-Home: "goDocStart"
Cmd-Up: "goDocStart"
Cmd-End: "goDocEnd"
Cmd-Down: "goDocEnd"
Alt-Left: "goGroupLeft"
Alt-Right: "goGroupRight"
Cmd-Left: "goLineLeft"
Cmd-Right: "goLineRight"
Alt-Backspace: "delGroupBefore"
Ctrl-Alt-Backspace: "delGroupAfter"
Alt-Delete: "delGroupAfter"
Cmd-S: "save"
Shift-Cmd-G: "findPrev"
Cmd-Alt-F: "replace"
Shift-Cmd-Alt-F: "replaceAll"
Cmd-[: "indentLess"
Cmd-]: "indentMore"
Cmd-Backspace: "delWrappedLineLeft"
Cmd-Delete: "delWrappedLineRight"
Cmd-U: "undoSelection"
Shift-Cmd-U: "redoSelection"
Ctrl-Up: "goDocStart"
Ctrl-Down: "goDocEnd"

@laurent22
Copy link
Owner

Looks good, thanks Caleb! And I agree an explicit list of supported commands is much better.

@laurent22 laurent22 merged commit 262159c into laurent22:master Jul 2, 2020
@CalebJohn CalebJohn deleted the blank-keymap branch July 2, 2020 22:22
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

Successfully merging this pull request may close these issues.

2 participants