cboxdoerfer / fsearch

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

Prioritize showing the end for the path shown in the column instead of the beginning #391

Open bayazidbh opened 2 years ago

bayazidbh commented 2 years ago

Is your feature request related to a problem? Please describe. Depending on the size of the window and the length of the path, it can be hard to tell what folder a file belongs to:

image

I don't think the path column is very informative there. At least for me, this can be an issue because I would often just create an Archive folder and toss old files there, so I often have to hover the path to see the full path string to be sure.

Describe the solution you'd like The simplest soultion would be to prioritize the end path of the path, rather than the beginning.

Describe alternatives you've considered Perhaps truncating the beginning as well? Instead of /home/$USER/[...] it can be ~/Documents/Work/[...]/Project/Archive that would allow showing both the beginning of the path and the end.

Also, if the user is doing a path-based search, then perhaps the part that's already in the search box can be hidden from the path column?

Just spitballing a few ideas on how the path column could be improved, feel free to disregard if there's other logistical issues with it.

cboxdoerfer commented 2 years ago

Thx for the feature request.

Perhaps truncating the beginning as well? Instead of /home/$USER/[...] it can be ~/Documents/Work/[...]/Project/Archive that would allow showing both the beginning of the path and the end.

That's a good suggestion. I'll think about changing the default.

In fact the code already has all the logic to support per column settings for text alignment and ellipsizing. So ideally this should be made configurable by the user, which I'll definitely add at one point. Not sure though if it'll be ready for the 0.3 release.

Also, if the user is doing a path-based search, then perhaps the part that's already in the search box can be hidden from the path column?

That sounds interesting, but also quite tricky to implement. Not sure if I ever get to experiment with that.