emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/mct 0288e39 1/2: Add binding of mct-focus-minibuffer in


From: ELPA Syncer
Subject: [elpa] externals/mct 0288e39 1/2: Add binding of mct-focus-minibuffer in Completions
Date: Wed, 8 Dec 2021 03:57:23 -0500 (EST)

branch: externals/mct
commit 0288e39ee37668d43f428cdea782434444e6eacf
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Add binding of mct-focus-minibuffer in Completions
    
    Thanks to José Antonio Ortega Ruiz for the feedback in issue 11:
    <https://gitlab.com/protesilaos/mct/-/issues/11>.
---
 README.org | 8 ++++++++
 mct.el     | 1 +
 2 files changed, 9 insertions(+)

diff --git a/README.org b/README.org
index b17726b..9d6d800 100644
--- a/README.org
+++ b/README.org
@@ -275,6 +275,14 @@ There are several ways to select a completion candidate.
    completion candidate, so it retains its behaviour (as explained right
    above).
 
+   #+findex: mct-focus-minibuffer
+   Sometimes there is a need to switch to the minibuffer without
+   selecting the candidate at point, such as to retype some part of the
+   input.  In those cases, type =e= in the completions' buffer to move to
+   the minibuffer.  The command is called ~mct-focus-minibuffer~, which
+   can also be assigned to the global keymap, though MCT leaves such a
+   decision up to the user.
+
    #+findex: mct-choose-completion-number
 5. Select a candidate by its line number by typing =M-g M-g= in either the
    minibuffer or the =*Completions*= buffer.  This calls the command
diff --git a/mct.el b/mct.el
index af244b5..8c0f8b0 100644
--- a/mct.el
+++ b/mct.el
@@ -980,6 +980,7 @@ region.")
     (define-key map (kbd "M-p") #'mct-previous-completion-group)
     (define-key map (kbd "M-n") #'mct-next-completion-group)
     (define-key map (kbd "p") #'mct-previous-completion-or-mini)
+    (define-key map (kbd "e") #'mct-focus-minibuffer)
     (define-key map (kbd "M-e") #'mct-edit-completion)
     (define-key map (kbd "<tab>") #'mct-choose-completion-no-exit)
     (define-key map (kbd "<return>") #'mct-choose-completion-exit)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]