feat(keybindings): have emacs-mcx handle cmd+up/down keybindings

This allows active region to keep working.
This commit is contained in:
2025-03-10 23:37:33 +00:00
parent 97905c3efd
commit 768dd3442f

View File

@@ -101,7 +101,7 @@
},
//
// ===========================================================================
// MARK: File open
// MARK: File Open
// ===========================================================================
//
{ // Open file via file browser extension.
@@ -124,7 +124,7 @@
},
//
// ===========================================================================
// MARK: File rename
// MARK: File Rename
// ===========================================================================
//
{ // Rename file via file browser extension.
@@ -133,7 +133,7 @@
},
//
// ===========================================================================
// MARK: Switch and close editor
// MARK: Switch and Close Editor
// ===========================================================================
//
{ // Show all editors by most recently used.
@@ -255,7 +255,7 @@
},
//
// ===========================================================================
// MARK: Editor group layout
// MARK: Editor Group Layout
// ===========================================================================
//
{ // Even editor widths.
@@ -275,7 +275,7 @@
},
//
// ===========================================================================
// MARK: Move active editor group
// MARK: Move Active Editor Group
// ===========================================================================
//
{ // Move active editor group up.
@@ -296,7 +296,7 @@
},
//
// ===========================================================================
// MARK: Move active editor into group
// MARK: Move Active Editor into Group
// ===========================================================================
//
{ // Move active editor into group above.
@@ -324,7 +324,7 @@
},
//
// ===========================================================================
// MARK: Undo/redo
// MARK: Undo/Redo
// ===========================================================================
//
{ // Undo.
@@ -401,7 +401,7 @@
},
//
// ===========================================================================
// MARK: Text navigation
// MARK: Text Navigation
// ===========================================================================
//
{ // Forward paragraph.
@@ -431,6 +431,21 @@
"key": "ctrl+c ctrl+j",
"command": "editor.action.revealDefinition"
},
{ // Beginning of buffer.
"key": "cmd+up",
"command": "emacs-mcx.beginningOfBuffer",
"when": "editorFocus"
},
{ // End of buffer.
"key": "cmd+down",
"command": "emacs-mcx.endOfBuffer",
"when": "editorFocus"
},
//
// ===========================================================================
// MARK: Code Navigation
// ===========================================================================
//
{ // Navigate back.
"key": "alt+g b",
"command": "workbench.action.navigateBack"
@@ -446,7 +461,7 @@
},
//
// ===========================================================================
// MARK: Text manipulation
// MARK: Text Manipulation
// ===========================================================================
//
{ // Set indentation to correct level.
@@ -576,7 +591,7 @@
},
//
// ===========================================================================
// MARK: Expand region
// MARK: Expand Region
// ===========================================================================
// Extension:
// - https://marketplace.visualstudio.com/items?itemName=letrieu.expand-region
@@ -593,7 +608,7 @@
},
//
// ===========================================================================
// MARK: Multi-cursor
// MARK: Multi-Cursor
// ===========================================================================
//
{ // Select all highlights.
@@ -847,7 +862,7 @@
},
//
// ===========================================================================
// MARK: Makefile task runner
// MARK: Makefile Task Runner
// ===========================================================================
// Extension:
// - https://marketplace.visualstudio.com/items?itemName=carlos-algms.make-task-provider