Closed nat-418 closed 2 months ago
This is intended and documented behavior. Ensuring that path actually exists on disk simplifies code logic down the line by removing the need to do later checks.
Plus I assume that -
calls MiniFiles.open()
with the path of the current file, which should result with cursor placed on that file in the explorer. This is impossible because there is no file on disk (yet).
The cost of not being able to open explorer with focus on non-existing path seems OK for me.
Closing as not planned.
Contributing guidelines
Module(s)
mini.files
Description
If I open a new file and then try to navigate its parent directory using
-
, I get anE5108: Error executing lua: (mini.files)
pathis not a valid path
error. I don't think the file not being written should matter, since the parent directory exists.Neovim version
v0.10.0-dev-c81b784
Steps to reproduce
mkdir -p foo
echo "a" > foo/a.txt
nvim foo/b.txt
-
Expected behavior
show me my directory explorer
Actual behavior
error