1

Can the insert-completion of file names CTRL+XCTRL+F can be used to complete filenames that are not in the current working directory ? But rather in any in the path variable ?

Can we, for example, override (with pain I guess) the CTRL+XCTRL+F mapping to take path (or only the path of the current buffer) into account ?

Also, :h compl-filename says

Note: the 'path' option is not used here (yet).

Are there any effort in making the "(yet)" part obsolete ? How hard would it be to implement it ?

1
  • 1
    Replace getcompletion() with globpath() in the answer to get the desired functionality.
    – Matt
    Jan 23 '20 at 14:17