diff --git a/keybindings.json b/keybindings.json index af60719..8f469db 100644 --- a/keybindings.json +++ b/keybindings.json @@ -908,6 +908,34 @@ "key": "alt+x g", "command": "-magit.status" }, + { + "key": "n", + "command": "magit.move-next-entity", + "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" + }, + { + "key": "p", + "command": "magit.move-previous-entity", + "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" + }, + { + "key": "alt+n", + "command": "magit.move-next-section", + "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" + }, + { // Move lines down in editor. + // + // This is a workaround for alt+n not working in VSCode. Relies on + // Karabiner-Elements to remap alt+n to cmd+alt+down. + "key": "cmd+alt+down", + "command": "magit.move-next-section", + "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" + }, + { + "key": "alt+p", + "command": "magit.move-previous-section", + "when": "editorTextFocus && editorLangId == 'magit' && vim.mode =~ /^(?!SearchInProgressMode|CommandlineInProgress).*$/" + }, // // =========================================================================== // MARK: GitHub