Completion case reddit / emacs ---------------------------------------------------------------------- AsterOps · 2022-05-29 07:02 I've encounter situation when I have file, e.g `/tmp/TestFile1` saved and it's impossible to switch (or create) file using `C-x C-f` to file `/tmp/TestFile` because completion always enforce to open `TestFile1`. I've tested on `icomplete-mode`, `fido-mode` and `vertico`. Is it way to override the completion in some situation and open desired file? ---------------------------------------------------------------------- mickeyp · 2022-05-29 07:03 Try `C-j` instead of `RET`. ---------------------------------------------------------------------- coquec · 2022-05-29 08:13 Try C-f, it works in ido-mode ---------------------------------------------------------------------- aqua0210 · 2022-05-29 14:57 You can try `C-p` and then `RET`. It works well in vertico for me. ---------------------------------------------------------------------- AsterOps · 2022-05-30 08:35 Thanks, I did some mess in keybindings for more convenience. My current Icomplete configuration: ``` (icomplete-mode t) (icomplete-vertical-mode t) (setq icomplete-scroll t icomplete-show-matches-on-no-input t) (define-key icomplete-minibuffer-map (kbd "") 'icomplete- force-complete-and-exit) (define-key icomplete-minibuffer-map (kbd "") 'icomplete-force- complete) (define-key icomplete-minibuffer-map (kbd "S-") 'icomplete- ret) (define-key icomplete-minibuffer-map (kbd "C-j") 'minibuffer-complete) ``` `icomplete-ret` does job done for this case