Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter out non-existing projects #36

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

arntanguy
Copy link
Contributor

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.

@LintaoAmons
Copy link
Owner

Thanks for your efforts

@LintaoAmons LintaoAmons merged commit c7769e8 into LintaoAmons:main Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants