I use interactive mode with Ivy and Dired for interactively creating new files, like so:
(evil-local-set-key 'normal (kbd "t") (lambda (file)
(interactive "Ftouch ")
(let ((target_exists (file-directory-p file))
(target_dir (file-name-directory file)))
(unless target_exists
(make-directory target_dir t))
(with-temp-buffer
(append-to-file (point-min)
(point-max)
file))
(revert-buffer)
(dired target_dir))
It works fine. The problem is that the /
key always automatically completes what I am currently hovering in the completion list. Please take a look at the following GIF:
https://gfycat.com/parallelscratchyhuman
When I type .
A
M
/
, interactive mode will automatically complete it to ".AMD/", which is not my intention.
What I want to do is get rid of this "completion" behavior of /
to not disturb what I am typing, i.e. pressing /
only outputs the literal /
character and nothing else.