I have helm-find-files
bound to C-x C-f.
When I use it with a filename at point, and the file exists, it uses ffap
to offer me that file, which is nice.
But when the file does not exist, it just offers the contents of a directory.
MWE: suppose in a LaTeX buffer I have
\input{/tmp/foo.tex}
with the point on the filename, but the file itself does not exist. How could I make helm-find-files
offer creating and opening it as an option?
thing-at-point
(used inhelm-find-files-1
) doesn't recognise\input{/tmp/foo.tex}
as a filename. If you unwrap the filename, for example, it should work as you say. Looks more like a bug with how thing-at-point handles the filename option. Tested with emacs version 26.2.