feat(cursor/keybindings): enable half-page scrolling with ctrl+v and alt+v

This commit is contained in:
2025-03-02 15:11:58 +00:00
parent 989b90822f
commit d0dc7b9068

View File

@@ -223,6 +223,43 @@
},
//
// ===========================================================================
// Scrolling
// ===========================================================================
//
{ // Scroll half page down.
"key": "ctrl+v",
"command": "editorScroll",
"args": {
"to": "down",
"by": "halfPage",
"revealCursor": true,
"value": 1
},
"when": "editorTextFocus && !suggestWidgetVisible"
},
{ // Scroll half page up.
"key": "alt+v",
"command": "editorScroll",
"args": {
"to": "up",
"by": "halfPage",
"revealCursor": true,
"value": 1,
},
"when": "editorTextFocus && !suggestWidgetVisible"
},
{ // Disable awesome-emacs-keymap scroll down keybinding.
"key": "ctrl+v",
"command": "-emacs-mcx.scrollUpCommand",
"when": "editorTextFocus && !suggestWidgetVisible"
},
{ // Disable awesome-emacs-keymap scroll up keybinding.
"key": "alt+v",
"command": "-emacs-mcx.scrollDownCommand",
"when": "editorTextFocus && !config.emacs-mcx.useMetaPrefixMacCmd && !suggestWidgetVisible"
},
//
// ===========================================================================
// Text navigation
// ===========================================================================
//