cboxdoerfer / fsearch

A fast file search utility for Unix-like systems based on GTK3
GNU General Public License v2.0
3.33k stars 209 forks source link

Don't separate files/folders in the search #382

Closed awsms closed 2 years ago

awsms commented 2 years ago

Is your feature request related to a problem? Please describe. I would like to see both big files and folders at the same time, and it's not possible yet since the size order is inverted for files & folders. It's either big files/small folders first, or the other way around, and both formats are separated.

for ex, instead of

├──file 1 (2GB)
├──file 2 (1GB)
├──file 3 (500MB) etc
├──folder 1 (1.5GB)
├──folder 2 (5GB)
└── ...
├──folder 1 (5GB)
├──file 1 (2GB)
├──folder 2 (1.5GB)
├──file 2 (1GB) etc
└── ...

Describe the solution you'd like Adding a "Don't separate folders and files in search results" togglebox in settings

Describe alternatives you've considered ncdu

cboxdoerfer commented 2 years ago

Hi, thanks for the feedback. This feature has already been requested in #281. Like I mentioned in that comment section, I've added this to the TODO list

The current database design makes this complex and a little difficult to implement, because internally files and folders are stored in separate in indexes. So mixing them together in the result list requires additional CPU time (searching and sorting becomes slower).

I'm closing this issue here, any further discussions should take place in #281.

awsms commented 2 years ago

Sorry, I've already searched in the issues but didn't find it!

cboxdoerfer commented 2 years ago

No problem.