feat(keybindings/edamagit): add n/p keybindings

This commit is contained in:
2025-09-05 01:38:19 +01:00
parent 0e39757975
commit ceb8bb42ef

View File

@@ -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