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

[Feature request] Only load a specified number of files #229

Open
sjhsbhqf opened this issue Jun 7, 2024 · 0 comments
Open

[Feature request] Only load a specified number of files #229

sjhsbhqf opened this issue Jun 7, 2024 · 0 comments

Comments

@sjhsbhqf
Copy link

sjhsbhqf commented Jun 7, 2024

When I click on a directory that includes many subfolders or files, the file list below will cause the entire Obsidian to lag because it is loading such a large number.

I'm wondering if we could add a preloading feature, or more precisely, load only 100 items.

I don't quite understand where performance issues are more likely to occur, but I might know:

  • During indexing, stop indexing after 100 items completed, which should be the lowest performance requirement? In this case, the order is probably just the order in which system resources are listed when accessed, either by storage order or some other order, which is likely not modifiable by default?

  • Index everything, and then display only 100 items, which is a higher performance requirement, as only the displayed portion is released. In this case, the plugin can sort the items based on weights or priorities, such as putting JPG files at the end, MD files at the front, and PDF files in the middle.

Let me digress a bit, which is not related to this topic:
We can also set weights for certain keywords, for example, if we encounter mdnotes, we can increase its weight to level 5, so that the file list will prioritize displaying them at the top.

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

No branches or pull requests

1 participant