I have helm-find-files
bound to C-x C-f
since it provides a much more convenient way to open files. Unfortunately for me, if point is currently inside something that looks like a filename then that alters helm-find-files
's behaviour, often changing its current directory. (See https://github.com/emacs-helm/helm/issues/1178 )
Is there a straightforward way for me to nobble thing-at-point
inside helm-find-files-initial-input
so that it never believes point is inside a filename? I thought that defadvice
would help but I'm having trouble working out how.
Or perhaps there's a better way to make helm-find-files
behave consistently no matter where point is without modifying its implementation directly?
You can set helm-find-file-ignore-thing-at-point
to t
.
Documentation:
Use only ‘default-directory’ as default input in ‘helm-find-files’.
I.e text under cursor in ‘current-buffer’ is ignored.
Note that when non-nil you will be unable to complete filename at point
in ‘current-buffer’.