branch: externals/mct
commit 038ff66a548e99b084af1ea24a85bc5ebf27987d
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Refine mct-tcm interaction model
1. Always insert characters at the end of the minibuffer's input.
2. Make mct-live-completion 'visible' so that if the user had the
Completions in the window, they will always stay there.
3. Remove the minimum input threshold and delay between updates. In
essence, when the user interacts with mct-tcm, they are making the
current completion session behave as if it belonged to the
mct-completion-passlist.
For a discussion, see issue 25:
<https://gitlab.com/protesilaos/mct/-/issues/25>.
---
mct-tcm.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/mct-tcm.el b/mct-tcm.el
index 9508aac76b..86b71dbcdf 100644
--- a/mct-tcm.el
+++ b/mct-tcm.el
@@ -58,6 +58,10 @@ minibuffer while narrowing to the given input."
(or (memq 'shift (event-modifiers char))
(not (event-modifiers char))))
(select-window mini)
+ (goto-char (point-max))
+ (setq-local mct-live-completion 'visible)
+ (setq-local mct-live-update-delay 0)
+ (setq-local mct-minimum-input 0)
(insert char))))
(declare-function mct--minibuffer-p "mct")