From 7854ad74addd9bcae905def8fe4f844fb5c08678 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 23 Jan 2026 22:42:10 -0600 Subject: fix(terminal): add console/mosh compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Create terminal-compat.el for arrow key escape sequences - Fix M-uppercase keybindings (M-O → M-S-o, etc.) that conflicted with terminal escape sequences ESC O A/B/C/D - Add GUI-only guards for emojify and icon rendering - 18 keybindings updated across 13 modules with override comments --- modules/ui-navigation.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/ui-navigation.el') diff --git a/modules/ui-navigation.el b/modules/ui-navigation.el index 0a9864e6..8248bab6 100644 --- a/modules/ui-navigation.el +++ b/modules/ui-navigation.el @@ -60,7 +60,7 @@ (split-window-right) (other-window 1) (consult-buffer)) -(keymap-global-set "M-V" #'cj/split-and-follow-right) +(keymap-global-set "M-S-v" #'cj/split-and-follow-right) ;; was M-V, overrides scroll-down (defun cj/split-and-follow-below () "Split window vertically and select a buffer to display." @@ -68,7 +68,7 @@ (split-window-below) (other-window 1) (consult-buffer)) -(keymap-global-set "M-H" #'cj/split-and-follow-below) +(keymap-global-set "M-S-h" #'cj/split-and-follow-below) ;; was M-H ;; ------------------------- Split Window Reorientation ------------------------ @@ -101,10 +101,10 @@ This function won't work with more than one split window." (set-window-buffer (next-window) next-win-buffer) (select-window first-win) (if this-win-2nd (other-window 1)))))) -(keymap-global-set "M-T" #'toggle-window-split) +(keymap-global-set "M-S-t" #'toggle-window-split) ;; was M-T, overrides transpose-words ;; SWAP WINDOW POSITIONS -(keymap-global-set "M-S" #'window-swap-states) +(keymap-global-set "M-S-s" #'window-swap-states) ;; was M-S ;; ---------------------------- Buffer Manipulation ---------------------------- @@ -140,7 +140,7 @@ This function won't work with more than one split window." (find-file (if arg (nth arg recently-killed-list) (car recently-killed-list)))))) -(keymap-global-set "M-Z" #'cj/undo-kill-buffer) +(keymap-global-set "M-S-z" #'cj/undo-kill-buffer) ;; was M-Z, overrides zap-to-char ;; ---------------------------- Undo Layout Changes ---------------------------- ;; allows you to restore your window setup with C-c left-arrow @@ -148,7 +148,7 @@ This function won't work with more than one split window." (use-package winner :ensure nil ;; built-in - :bind ("M-U" . winner-undo) + :bind ("M-S-u" . winner-undo) ;; was M-U, overrides upcase-word :config (winner-mode 1)) -- cgit v1.2.3