reddit / emacs

Ivy

DanTheDiscloser · 2022-11-17 20:11
I opened a buffer to `/tmp/abc` and want to save a copy as `/tmp/ab` but don't see any way to have `save-file` accept a string that is a substring of a file. ​ Is there a way to do it?
franburstall · 2022-11-17 20:26
`C-M-j` (`ivy-immediate-done`) accepts whatever is currently in the top line.
loskutak-the-ptak · 2022-11-17 22:38
You can `(setq ivy-use-selectable-prompt t)`, after which the prompt can be selected. So you would type "ab" and hit `C-p` to select the exact thing you typed and finally `RET`.
DanTheDiscloser · 2022-11-17 23:26
Thank you.
deaddyfreddy · 2022-11-18 00:38
It's described in the docs, and it was asked dozens of times before on SO/reddit and other resources.