Using spacemacs I usually open new files for editing with C-s C-f
(for find-file
), since that is recommended by this answer.
However I have an issue when the file I wish to open is both new (doesn't yet exist), and is a substring of an existing file. For example: I want to open project/src/Types/List.hs
for editing, but there already exists project/src/Types/InfiniteList.hs
. So when I type the name of the file I wish to edit it selects the existing file from the list.
I tried also using neo-tree to create the file but it seems like it uses find-file
to implement its file creation so the problem continues.
My current solution is to go to my terminal and touch
the desired file before opening, but this is pretty annoying to do. Is there some way to do this from within spacemacs? Is there some alternative to find-file
that I should be using here?