diff options
| author | cashmere <cashmere@autistici.org> | 2026-08-11 20:23:42 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-08-11 20:23:42 +0200 |
| commit | 79fa4ec01675a4ed876821b66ed6f35696d450d6 (patch) | |
| tree | 72f9634d086e1d93cf244975cb77f10b61a8126c /lisp | |
| parent | ef17a1971b70695f8b10b8ae4736be07d46c0974 (diff) | |
| download | emacs-79fa4ec01675a4ed876821b66ed6f35696d450d6.tar.gz | |
Fix helix bindings for dashboard modes
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/croc-ui.el | 5 | ||||
| -rw-r--r-- | lisp/sync-ui.el | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/croc-ui.el b/lisp/croc-ui.el index 50c8b9a..aefe065 100644 --- a/lisp/croc-ui.el +++ b/lisp/croc-ui.el @@ -164,7 +164,8 @@ "Mode for raw croc process logs." (setq-local truncate-lines t) (local-set-key (kbd "w") #'croc-ui-copy-code) - (local-set-key (kbd "x") #'croc-ui-kill)) + (local-set-key (kbd "x") #'croc-ui-kill) + (local-set-key (kbd "q") #'quit-window)) (defun croc-ui--filter (proc chunk) "Append CHUNK to PROC's log and fold its state into the transfer struct." @@ -949,6 +950,7 @@ stay square; MARGIN (default 4) modules of quiet zone wrap the code." (define-key map (kbd "t") #'croc-ui-send-text) (define-key map (kbd "r") #'croc-ui-receive) (define-key map (kbd "RET") #'croc-ui-open-log) + (define-key map (kbd "<return>") #'croc-ui-open-log) (define-key map (kbd "w") #'croc-ui-copy-code) (define-key map (kbd "Q") #'croc-ui-toggle-qr) (define-key map (kbd "x") #'croc-ui-kill) @@ -976,6 +978,7 @@ stay square; MARGIN (default 4) modules of quiet zone wrap the code." (helix-define-key 'normal "j" #'croc-ui-next 'croc-ui-mode) (helix-define-key 'normal "k" #'croc-ui-previous 'croc-ui-mode) (helix-define-key 'normal "RET" #'croc-ui-open-log 'croc-ui-mode) + (helix-define-key 'normal (kbd "<return>") #'croc-ui-open-log 'croc-ui-mode) (helix-define-key 'normal "s" #'croc-ui-send-files 'croc-ui-mode) (helix-define-key 'normal "d" #'croc-ui-send-directory 'croc-ui-mode) (helix-define-key 'normal "t" #'croc-ui-send-text 'croc-ui-mode) diff --git a/lisp/sync-ui.el b/lisp/sync-ui.el index 36a8815..d61b1df 100644 --- a/lisp/sync-ui.el +++ b/lisp/sync-ui.el @@ -893,6 +893,7 @@ A ⁺ marks a remote that has no copy of the branch yet." (let ((map (make-sparse-keymap))) (define-key map (kbd "s") #'sync-ui-sync-all) (define-key map (kbd "RET") #'sync-ui-magit) + (define-key map (kbd "<return>") #'sync-ui-magit) (define-key map (kbd "r") #'sync-ui-resume) (define-key map (kbd "x") #'sync-ui-skip) (define-key map (kbd "t") #'sync-ui-toggle) @@ -901,6 +902,7 @@ A ⁺ marks a remote that has no copy of the branch yet." (define-key map (kbd "g") #'sync-ui-refresh) (define-key map (kbd "n") #'sync-ui-next) (define-key map (kbd "p") #'sync-ui-previous) + (define-key map (kbd "q") #'quit-window) map) "Keymap for `sync-ui-mode'.") @@ -920,7 +922,8 @@ A ⁺ marks a remote that has no copy of the branch yet." (with-eval-after-load 'helix (helix-define-key 'normal "j" #'sync-ui-next 'sync-ui-mode) (helix-define-key 'normal "k" #'sync-ui-previous 'sync-ui-mode) - (helix-define-key 'normal "RET" #'sync-ui-magit 'sync-ui-mode)) + (helix-define-key 'normal "RET" #'sync-ui-magit 'sync-ui-mode) + (helix-define-key 'normal (kbd "<return>") #'sync-ui-magit 'sync-ui-mode)) ;;; § 8 Entry points |
