From d0dc7b90688095e73c74309bd8a8a2447c8b8271 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 2 Mar 2025 15:11:58 +0000 Subject: [PATCH] feat(cursor/keybindings): enable half-page scrolling with ctrl+v and alt+v --- cursor/keybindings.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/cursor/keybindings.json b/cursor/keybindings.json index 5a332cf..6676c78 100644 --- a/cursor/keybindings.json +++ b/cursor/keybindings.json @@ -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 // =========================================================================== //