From ceb8bb42ef73bdc74680a3f0fdace40304b00528 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 5 Sep 2025 01:38:19 +0100 Subject: [PATCH] feat(keybindings/edamagit): add n/p keybindings --- keybindings.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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