From 9c8e25a65f530c980ca266473df3b74ad19e900c Mon Sep 17 00:00:00 2001 From: tshino Date: Fri, 24 Dec 2021 01:16:57 +0900 Subject: [PATCH 1/2] Add Atom Keymap support --- .../ms-vscode.atom-keybindings.config.json | 28 ++ .../ms-vscode.atom-keybindings.json | 270 ++++++++++++++++++ 2 files changed, 298 insertions(+) create mode 100644 keymap-wrapper/ms-vscode.atom-keybindings.config.json create mode 100644 keymap-wrapper/ms-vscode.atom-keybindings.json diff --git a/keymap-wrapper/ms-vscode.atom-keybindings.config.json b/keymap-wrapper/ms-vscode.atom-keybindings.config.json new file mode 100644 index 00000000..aa7b2317 --- /dev/null +++ b/keymap-wrapper/ms-vscode.atom-keybindings.config.json @@ -0,0 +1,28 @@ +{ + "base": { + "type": "url", + "url": "https://github.com/microsoft/vscode-atom-keybindings/raw/main/package.json" + }, + "footer": [ + { + "key": "ctrl+alt+r", + "command": "kb-macro.startRecording", + "when": "!kb-macro.recording" + }, + { + "key": "ctrl+alt+r", + "command": "kb-macro.finishRecording", + "when": "kb-macro.recording" + }, + { + "key": "ctrl+alt+p", + "command": "kb-macro.playback", + "when": "!kb-macro.recording" + }, + { + "key": "ctrl+alt+p", + "command": "kb-macro.cancelRecording", + "when": "kb-macro.recording" + } + ] +} \ No newline at end of file diff --git a/keymap-wrapper/ms-vscode.atom-keybindings.json b/keymap-wrapper/ms-vscode.atom-keybindings.json new file mode 100644 index 00000000..c27a1c45 --- /dev/null +++ b/keymap-wrapper/ms-vscode.atom-keybindings.json @@ -0,0 +1,270 @@ +[ + // Keymap wrapper for Atom Keymap v3.0.9 + // (required by Keyboard Macro Beta) + { "key": "a", "command": "kb-macro.wrap", "args": { "command": "explorer.newFile" }, + "when": "kb-macro.recording && filesExplorerFocus && !inputFocus" }, + { "key": "shift+a", "command": "kb-macro.wrap", "args": { "command": "explorer.newFolder" }, + "when": "kb-macro.recording && filesExplorerFocus && !inputFocus" }, + { "key": "cmd+1", "command": "kb-macro.wrap", "args": { "command": "explorer.openToSide" }, + "when": "kb-macro.recording && isMac && filesExplorerFocus && !inputFocus" }, + { "key": "ctrl+1", "command": "kb-macro.wrap", "args": { "command": "explorer.openToSide" }, + "when": "kb-macro.recording && !isMac && filesExplorerFocus && !inputFocus" }, + { "key": "backspace", "command": "kb-macro.wrap", "args": { "command": "moveFileToTrash" }, + "when": "kb-macro.recording && filesExplorerFocus && !inputFocus" }, + { "key": "cmd+c", "command": "kb-macro.wrap", "args": { "command": "filesExplorer.copy" }, + "when": "kb-macro.recording && isMac && filesExplorerFocus && !inputFocus" }, + { "key": "ctrl+c", "command": "kb-macro.wrap", "args": { "command": "filesExplorer.copy" }, + "when": "kb-macro.recording && !isMac && filesExplorerFocus && !inputFocus" }, + { "key": "h", "command": "kb-macro.wrap", "args": { "command": "list.collapse" }, + "when": "kb-macro.recording && filesExplorerFocus && !inputFocus" }, + { "key": "l", "command": "kb-macro.wrap", "args": { "command": "list.expand" }, + "when": "kb-macro.recording && filesExplorerFocus && !inputFocus" }, + { "key": "j", "command": "kb-macro.wrap", "args": { "command": "list.focusDown" }, + "when": "kb-macro.recording && filesExplorerFocus && !inputFocus" }, + { "key": "k", "command": "kb-macro.wrap", "args": { "command": "list.focusUp" }, + "when": "kb-macro.recording && filesExplorerFocus && !inputFocus" }, + { "key": "cmd+shift+ctrl+f", "command": "kb-macro.wrap", "args": { "command": "workbench.action.toggleZenMode" }, + "when": "kb-macro.recording && isMac" }, + { "key": "shift+f11", "command": "kb-macro.wrap", "args": { "command": "workbench.action.toggleZenMode" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "ctrl+cmd+down", "command": "kb-macro.wrap", "args": { "command": "editor.action.moveLinesDownAction" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "ctrl+down", "command": "kb-macro.wrap", "args": { "command": "editor.action.moveLinesDownAction" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "ctrl+cmd+up", "command": "kb-macro.wrap", "args": { "command": "editor.action.moveLinesUpAction" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "ctrl+up", "command": "kb-macro.wrap", "args": { "command": "editor.action.moveLinesUpAction" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "cmd+shift+d", "command": "kb-macro.wrap", "args": { "command": "editor.action.copyLinesDownAction" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "ctrl+shift+d", "command": "kb-macro.wrap", "args": { "command": "editor.action.copyLinesDownAction" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "ctrl+shift+k", "command": "kb-macro.wrap", "args": { "command": "editor.action.deleteLines" }, + "when": "kb-macro.recording && editorTextFocus" }, + { "key": "cmd+k cmd+b", "command": "kb-macro.wrap", "args": { "command": "workbench.action.toggleSidebarVisibility" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+k ctrl+b", "command": "kb-macro.wrap", "args": { "command": "workbench.action.toggleSidebarVisibility" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+\\", "command": "kb-macro.wrap", "args": { "command": "workbench.action.toggleSidebarVisibility" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+\\", "command": "kb-macro.wrap", "args": { "command": "workbench.action.toggleSidebarVisibility" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+k left", "command": "kb-macro.wrap", "args": { "command": "workbench.action.splitEditor" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+k left", "command": "kb-macro.wrap", "args": { "command": "workbench.action.splitEditor" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+t", "command": "kb-macro.wrap", "args": { "command": "workbench.action.quickOpen" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+t", "command": "kb-macro.wrap", "args": { "command": "workbench.action.quickOpen" }, + "when": "kb-macro.recording && isWindows" }, + { "key": "ctrl+p", "command": "kb-macro.wrap", "args": { "command": "workbench.action.quickOpen" }, + "when": "kb-macro.recording && !isMac && !isWindows" }, + { "key": "ctrl-alt-b", "command": "kb-macro.wrap", "args": { "command": "editor.action.formatDocument" }, + "when": "kb-macro.recording && isMac" }, + { "key": "shift-alt-f", "command": "kb-macro.wrap", "args": { "command": "editor.action.formatDocument" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+b", "command": "kb-macro.wrap", "args": { "command": "workbench.action.quickOpenNavigateNext" }, + "when": "kb-macro.recording && isMac && inQuickOpen" }, + { "key": "ctrl+b", "command": "kb-macro.wrap", "args": { "command": "workbench.action.quickOpenNavigateNext" }, + "when": "kb-macro.recording && !isMac && inQuickOpen" }, + { "key": "ctrl+shift+l", "command": "kb-macro.wrap", "args": { "command": "workbench.action.editor.changeLanguageMode" }, + "when": "kb-macro.recording" }, + { "key": "ctrl+shift+m", "command": "kb-macro.wrap", "args": { "command": "markdown.showPreviewToSide" }, + "when": "kb-macro.recording" }, + { "key": "ctrl+alt+cmd+l", "command": "kb-macro.wrap", "args": { "command": "workbench.action.reloadWindow" }, + "when": "kb-macro.recording && isMac" }, + { "key": "alt+ctrl+r", "command": "kb-macro.wrap", "args": { "command": "workbench.action.reloadWindow" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "ctrl+shift+o", "command": "kb-macro.wrap", "args": { "command": "editor.action.openLink" }, + "when": "kb-macro.recording && isMac" }, + { "key": "none", "command": "kb-macro.wrap", "args": { "command": "editor.action.openLink" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "alt+cmd+i", "command": "kb-macro.wrap", "args": { "command": "workbench.action.toggleDevTools" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+alt+i", "command": "kb-macro.wrap", "args": { "command": "workbench.action.toggleDevTools" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "alt+shift+s", "command": "kb-macro.wrap", "args": { "command": "editor.action.showSnippets" }, + "when": "kb-macro.recording" }, + { "key": "ctrl+shift+o", "command": "kb-macro.wrap", "args": { "command": "workbench.action.files.openFolder" }, + "when": "kb-macro.recording" }, + { "key": "cmd+shift+o", "command": "kb-macro.wrap", "args": { "command": "workbench.action.files.openFileFolder" }, + "when": "kb-macro.recording && isMac" }, + { "key": "none", "command": "kb-macro.wrap", "args": { "command": "workbench.action.files.openFileFolder" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "ctrl+m", "command": "kb-macro.wrap", "args": { "command": "editor.action.jumpToBracket" }, + "when": "kb-macro.recording && editorTextFocus" }, + { "key": "cmd+l", "command": "kb-macro.wrap", "args": { "command": "expandLineSelection" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "ctrl+l", "command": "kb-macro.wrap", "args": { "command": "expandLineSelection" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "ctrl+shift+up", "command": "kb-macro.wrap", "args": { "command": "cursorColumnSelectUp" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "shift+alt+up", "command": "kb-macro.wrap", "args": { "command": "cursorColumnSelectUp" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "ctrl+shift+down", "command": "kb-macro.wrap", "args": { "command": "cursorColumnSelectDown" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "shift+alt+down", "command": "kb-macro.wrap", "args": { "command": "cursorColumnSelectDown" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "ctrl+alt+b", "command": "kb-macro.wrap", "args": { "command": "editor.action.format" }, + "when": "kb-macro.recording && isMac && editorHasFormattingProvider && editorTextFocus && !editorReadonly" }, + { "key": "alt+shift+f", "command": "kb-macro.wrap", "args": { "command": "editor.action.format" }, + "when": "kb-macro.recording && isWindows && editorHasFormattingProvider && editorTextFocus && !editorReadonly" }, + { "key": "ctrl+shift+i", "command": "kb-macro.wrap", "args": { "command": "editor.action.format" }, + "when": "kb-macro.recording && !isMac && !isWindows && editorHasFormattingProvider && editorTextFocus && !editorReadonly" }, + { "key": "ctrl+alt+t", "command": "kb-macro.wrap", "args": { "command": "workbench.action.terminal.toggleTerminal" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+`", "command": "kb-macro.wrap", "args": { "command": "workbench.action.terminal.toggleTerminal" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "ctrl+cmd+f", "command": "kb-macro.wrap", "args": { "command": "workbench.action.toggleFullScreen" }, + "when": "kb-macro.recording && isMac" }, + { "key": "f11", "command": "kb-macro.wrap", "args": { "command": "workbench.action.toggleFullScreen" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+r", "command": "kb-macro.wrap", "args": { "command": "workbench.action.gotoSymbol" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+r", "command": "kb-macro.wrap", "args": { "command": "workbench.action.gotoSymbol" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "alt+cmd+[", "command": "kb-macro.wrap", "args": { "command": "editor.fold" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "alt+ctrl+[", "command": "kb-macro.wrap", "args": { "command": "editor.fold" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "alt+cmd+]", "command": "kb-macro.wrap", "args": { "command": "editor.unfold" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "alt+ctrl+]", "command": "kb-macro.wrap", "args": { "command": "editor.unfold" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "alt+cmd+shift+[", "command": "kb-macro.wrap", "args": { "command": "editor.foldAll" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "alt+ctrl+shift+[", "command": "kb-macro.wrap", "args": { "command": "editor.foldAll" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "alt+cmd+shift+]", "command": "kb-macro.wrap", "args": { "command": "editor.unfoldAll" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "alt+ctrl+shift+]", "command": "kb-macro.wrap", "args": { "command": "editor.unfoldAll" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "cmd+shift+7", "command": "kb-macro.wrap", "args": { "command": "editor.action.commentLine" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "cmd+k cmd+c", "command": "kb-macro.wrap", "args": { "command": "editor.action.commentLine" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "cmd+=", "command": "kb-macro.wrap", "args": { "command": "workbench.action.zoomIn" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+=", "command": "kb-macro.wrap", "args": { "command": "workbench.action.zoomIn" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+-", "command": "kb-macro.wrap", "args": { "command": "workbench.action.zoomOut" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+-", "command": "kb-macro.wrap", "args": { "command": "workbench.action.zoomOut" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+k cmd+1", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel1" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "ctrl+k ctrl+1", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel1" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "cmd+k cmd+2", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel2" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "ctrl+k ctrl+2", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel2" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "cmd+k cmd+3", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel3" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "ctrl+k ctrl+3", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel3" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "cmd+k cmd+4", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel4" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "ctrl+k ctrl+4", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel4" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "cmd+k cmd+5", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel5" }, + "when": "kb-macro.recording && isMac && editorTextFocus" }, + { "key": "ctrl+k ctrl+5", "command": "kb-macro.wrap", "args": { "command": "editor.foldLevel5" }, + "when": "kb-macro.recording && !isMac && editorTextFocus" }, + { "key": "ctrl+pagedown", "command": "kb-macro.wrap", "args": { "command": "workbench.action.nextEditor" }, + "when": "kb-macro.recording" }, + { "key": "ctrl+pageup", "command": "kb-macro.wrap", "args": { "command": "workbench.action.previousEditor" }, + "when": "kb-macro.recording" }, + { "key": "ctrl+cmd+g", "command": "kb-macro.wrap", "args": { "command": "editor.action.selectHighlights" }, + "when": "kb-macro.recording && isMac && editorFocus" }, + { "key": "alt+f3", "command": "kb-macro.wrap", "args": { "command": "editor.action.selectHighlights" }, + "when": "kb-macro.recording && !isMac && editorFocus" }, + { "key": "cmd+shift+l", "command": "kb-macro.wrap", "args": { "command": "editor.action.insertCursorAtEndOfEachLineSelected" }, + "when": "kb-macro.recording && isMac && editorTextFocus && editorHasSelection" }, + { "key": "alt+shift+l", "command": "kb-macro.wrap", "args": { "command": "editor.action.insertCursorAtEndOfEachLineSelected" }, + "when": "kb-macro.recording && !isMac && editorTextFocus && editorHasSelection" }, + { "key": "cmd+-", "command": "kb-macro.wrap", "args": { "command": "workbench.action.zoomOut" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+-", "command": "kb-macro.wrap", "args": { "command": "workbench.action.zoomOut" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+1", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex1" }, + "when": "kb-macro.recording && isMac" }, + { "key": "alt+1", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex1" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+2", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex2" }, + "when": "kb-macro.recording && isMac" }, + { "key": "alt+2", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex2" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+3", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex3" }, + "when": "kb-macro.recording && isMac" }, + { "key": "alt+3", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex3" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+4", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex4" }, + "when": "kb-macro.recording && isMac" }, + { "key": "alt+4", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex4" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+5", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex5" }, + "when": "kb-macro.recording && isMac" }, + { "key": "alt+5", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex5" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+6", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex6" }, + "when": "kb-macro.recording && isMac" }, + { "key": "alt+6", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex6" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+7", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex7" }, + "when": "kb-macro.recording && isMac" }, + { "key": "alt+7", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex7" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+8", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex8" }, + "when": "kb-macro.recording && isMac" }, + { "key": "alt+8", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex8" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+9", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex9" }, + "when": "kb-macro.recording && isMac" }, + { "key": "alt+9", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openEditorAtIndex9" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "alt+cmd+\\", "command": "kb-macro.wrap", "args": { "command": "workbench.files.action.showActiveFileInExplorer" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+shift+\\", "command": "kb-macro.wrap", "args": { "command": "workbench.files.action.showActiveFileInExplorer" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "ctrl+shift+c", "command": "kb-macro.wrap", "args": { "command": "workbench.action.files.copyPathOfActiveFile" }, + "when": "kb-macro.recording && !terminalFocus" }, + { "key": "cmd+,", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openGlobalSettings" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+,", "command": "kb-macro.wrap", "args": { "command": "workbench.action.openGlobalSettings" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+b", "command": "kb-macro.wrap", "args": { "command": "workbench.action.showAllEditors" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+b", "command": "kb-macro.wrap", "args": { "command": "workbench.action.showAllEditors" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+ctrl+shift+f", "command": "kb-macro.wrap", "args": { "command": "workbench.action.toggleZenMode" }, + "when": "kb-macro.recording && isMac" }, + { "key": "shift+f11", "command": "kb-macro.wrap", "args": { "command": "workbench.action.toggleZenMode" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+y", "command": "kb-macro.wrap", "args": { "command": "redo" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+y", "command": "kb-macro.wrap", "args": { "command": "redo" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+j", "command": "kb-macro.wrap", "args": { "command": "editor.action.joinLines" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+j", "command": "kb-macro.wrap", "args": { "command": "editor.action.joinLines" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "cmd+p", "command": "kb-macro.wrap", "args": { "command": "workbench.action.quickOpenPreviousEditor" }, + "when": "kb-macro.recording && isMac" }, + { "key": "ctrl+p", "command": "kb-macro.wrap", "args": { "command": "workbench.action.quickOpenPreviousEditor" }, + "when": "kb-macro.recording && !isMac" }, + { "key": "/", "command": "kb-macro.wrap", "args": { "command": "list.toggleKeyboardNavigation" }, + "when": "kb-macro.recording && listFocus && !inputFocus && listSupportsKeyboardNavigation" }, + { "key": "cmd+k", "command": "kb-macro.wrap", "args": { "command": "workbench.action.terminal.clear" }, + "when": "kb-macro.recording && isMac && terminalFocus" }, + { "key": "ctrl+k", "command": "kb-macro.wrap", "args": { "command": "workbench.action.terminal.clear" }, + "when": "kb-macro.recording && !isMac && terminalFocus" }, + { "key": "ctrl+alt+r", "command": "kb-macro.startRecording", + "when": "!kb-macro.recording" }, + { "key": "ctrl+alt+r", "command": "kb-macro.finishRecording", + "when": "kb-macro.recording" }, + { "key": "ctrl+alt+p", "command": "kb-macro.playback", + "when": "!kb-macro.recording" }, + { "key": "ctrl+alt+p", "command": "kb-macro.cancelRecording", + "when": "kb-macro.recording" } +] From dcc9f2d4b4845b5d98c4c25df7cc3ba74e5e6af1 Mon Sep 17 00:00:00 2001 From: tshino Date: Fri, 24 Dec 2021 01:24:31 +0900 Subject: [PATCH 2/2] Update CHANGELOG and README --- CHANGELOG.md | 1 + keymap-wrapper/README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dacb8b23..4cdc6588 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All notable changes to the Keyboard Macro Bata extension will be documented in t ### [Unreleased] - New + - Added Atom Keymap support. (See [Keymap Wrappers](keymap-wrapper/README.md)) [#22](https://github.com/tshino/vscode-kb-macro/pull/22) - Added Notepad++ Keymap support. (See [Keymap Wrappers](keymap-wrapper/README.md)) [#21](https://github.com/tshino/vscode-kb-macro/pull/21) - Update - Added comment lines to keymap wrapper files to describe keymap name and its version. [#20](https://github.com/tshino/vscode-kb-macro/pull/20) diff --git a/keymap-wrapper/README.md b/keymap-wrapper/README.md index 2f99a7e3..d87270a7 100644 --- a/keymap-wrapper/README.md +++ b/keymap-wrapper/README.md @@ -17,6 +17,7 @@ You can find the keybinding definitions for start/stop recording and playback at | Keymap extension | Keymap wrapper (JSON) | Last updated | Start rec. | Stop rec. | Playback | Note | | ---------------- | -------------- | ------------ | ---------- | --------- | -------- | ---- | +| [Atom Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.atom-keybindings) | [ms-vscode.atom-keybindings.json](ms-vscode.atom-keybindings.json) | 2021-12-24 | `Ctrl+Alt+R` | `Ctrl+Alt+R` | `Ctrl+Alt+P` | | | [Awesome Emacs Keymap](https://marketplace.visualstudio.com/items?itemName=tuttieee.emacs-mcx) | [tuttieee.emacs-mcx.json](tuttieee.emacs-mcx.json) | 2021-12-17 | `C-x S-9` | `C-x S-0` | `C-x e` | VS Code can't map '(' and ')' keys | | [Notepad++ Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.notepadplusplus-keybindings) | [ms-vscode.notepadplusplus-keybindings.json](ms-vscode.notepadplusplus-keybindings.json) | 2021-12-21 | `Ctrl+Shift+R` | `Ctrl+Shift+R` | `Ctrl+Shift+P` | `Ctrl+Shift+P` conflicts with Command Palette. | | [Sublime Text Keymap](https://marketplace.visualstudio.com/items?itemName=ms-vscode.sublime-keybindings) | [ms-vscode.sublime-keybindings.json](ms-vscode.sublime-keybindings.json) | 2021-12-21 | `Ctrl+Q` | `Ctrl+Q` | `Ctrl+Shift+Q` | |