Find some better techniques for file searching
Current problems
My Nautilus app becomes bit unresponsive, more unresponsive, and on, during searching 'a' (this is a trial) in a directory that contains my downloaded files which may contains thousands item, and finally it's crashed because I close it from GNOME Shell. I'm so sorry about this...
Goals & use cases
Sometime, we think that just typing one or two character(s), the Nautilus will efficiently shows us such files we're aiming, just like in GNOME Shell that easy to find apps or another contents. This is important to avoid the Nautilus being crashed any more when searching gigantic amount of files.
Requirements
I didn't know much about GLib, GTK, etc. But perhaps this post can gives us inspirations.
About the testing, it's should use the latest minimum requirement to install a nowadays OS.
Relevant art
Proposal & plan
- Maybe we've to index every 25 found items, and add them to the list as a list item widget, and on. Instead of add each of them to the list immediately. I meant, in the first 25 found items, Nautilus should shows each of them to the list widget immediately. And in the second 25 and on, it should 'asynchronously' shows the found items to the list widget.
- Multi-threading the process, maybe. I meant, make it as separated process thread.
- Ask the user whether to continue the searching or not if the found items are more than 1500.
Anyway, I so appreciate this project, and keep spirit!