[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico c5d121d60d: vertico-exit-input: Change default
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vertico c5d121d60d: vertico-exit-input: Change default binding from C-return to M-RET (Fix #196) |
Date: |
Mon, 14 Feb 2022 13:57:53 -0500 (EST) |
branch: externals/vertico
commit c5d121d60d7f7fdb995c1b15c9e4ba3c3052a0ad
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
vertico-exit-input: Change default binding from C-return to M-RET (Fix #196)
As pointed out by @oantolin, M-RET works both with terminal and gui Emacs.
C-return in contrast does not, since C-RET is not a valid ASCII control
character.
---
README.org | 4 ++--
vertico.el | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.org b/README.org
index 00ebf257b7..82c2971f26 100644
--- a/README.org
+++ b/README.org
@@ -28,7 +28,7 @@ lines of code without white space and comments.
- Vertical display with arrow key navigation. See the
[[#extensions][extensions]] for additional display modes.
- Prompt shows the current candidate index and the total number of candidates.
- The current candidate is inserted with =TAB= and selected with =RET=.
-- Non-existing candidates can be submitted with =C-return= or by moving the
point to the prompt.
+- Non-existing candidates can be submitted with =M-RET= or by moving the point
to the prompt.
- Configurable sorting by history position, length and alphabetically.
- Long candidates with newlines are formatted to take up less space.
- Deferred completion style highlighting for performance.
@@ -54,7 +54,7 @@ binding of =TAB= to ~vertico-insert~ and the bindings of
~vertico-exit/exit-inpu
- ~backward-paragraph~ -> ~vertico-previous-group~
- ~exit-minibuffer~ -> ~vertico-exit~
- ~kill-ring-save~ -> ~vertico-save~
-- =C-return= -> ~vertico-exit-input~
+- =M-RET= -> ~vertico-exit-input~
- =TAB= -> ~vertico-insert~
* Configuration
diff --git a/vertico.el b/vertico.el
index 57f88e41af..8568c3e107 100644
--- a/vertico.el
+++ b/vertico.el
@@ -122,7 +122,7 @@ See `resize-mini-windows' for documentation."
(define-key map [remap forward-paragraph] #'vertico-next-group)
(define-key map [remap exit-minibuffer] #'vertico-exit)
(define-key map [remap kill-ring-save] #'vertico-save)
- (define-key map [C-return] #'vertico-exit-input)
+ (define-key map "\e\r" #'vertico-exit-input)
(define-key map "\t" #'vertico-insert)
map)
"Vertico minibuffer keymap derived from `minibuffer-local-map'.")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/vertico c5d121d60d: vertico-exit-input: Change default binding from C-return to M-RET (Fix #196),
ELPA Syncer <=