mirror of
https://github.com/jimeh/.vscode.d.git
synced 2026-02-19 03:16:39 +00:00
feat(keybindings/edamagit): add n/p keybindings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user