Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In my use-case, I wish to use this project both on my local machine, and in instances of neovim in remote containers (docker, etc). I thus do not have the same folder structure in these environments, though some are in common.
For simplicity sake, I'd like to maintain a single list of projects, but only show the ones that actually exist on the environment in which my instance of neovim is currently running.
The change proposed in this PR does the job for me. We could make it optional but I don't really see the point as there is no reasonable action to do when trying to switch to a non-existing directory. It would either be do nothing or display an error, both of which are better served by not displaying the project in the first place. If we truly wish to do error handling, it should IMHO be done optionally at startup.