Repository navigation
Conversation
|
This project recently merged a large refactor (electron-vite migration, PR #4001) that upgraded dependencies and fixed several issues. Please review this PR and let us know if it is still needed, or if the changes have already been addressed upstream.
|
|
Hi @Neway13, thanks for opening this PR. We're going through old PRs and would like to confirm whether this one is still needed. This PR has no description, and since it was opened the project has gone through an electron-vite refactor (#4001). Could you:
If you no longer have the time to push this forward, we'll close it after a few weeks. Thank you either way. |
|
Hi @Jocs , it's great to see your reply. However, this pull request has been open for too long, and I've almost forgotten some of the details. I don't have time to handle it recently, so perhaps it would be better to close it. Thank you for the work you've done. |
Description
I added a feature to filter files and folders.
Sometimes we don't want certain files or folders displayed in the sidebar. It would look cleaner if we excluded them from the tree, such as the Image assets folders.
So I developed this feature. By configuring the glob patterns, users can exclude files or folders that they do not want to display. Use "," to separate multiple pattern.
Suppose my directory structure is as follows:

The following three expressions are configured:
**/*t/tempto exclude the file or folder namedtempin base folder**/*temp.mdto exclude all files or folders whose names end withtemp.md**/*.assetsto exclude all files or folders whose names end with.assetsUse "," to separate multiple pattern:
**/*t/temp,**/*temp.md,**/*.assetsFinally we will see the following structure in the sidebar:
The minimatch module is used to parse glob patterns.