When autocompleting a file path in the location bar, the matching should be case-insensitive, like in Dolphin File Manager. Or at least there should be an option to turn the matching to case insensitive.
Created attachment 6954 Patch implementing case-insensitive search Although its impossible to do full locale-independent case-insensitive matching/sorting, unicode case folding provides a method to do this. This patch implements a case-insensitive search by converting the search term & path entry with g_utf8_casefold()
Thanks for the patch and sorry for the late reply ! I did not look into other locals, however for me the search ( CTRL + F ) already is case insensitive ( thunar 1.6.14), though I dont know where the magic currently happens. Possibly there is some use-case which is not covered by the current case insensitive on the search ? Despite from that, this issue is about auto-complete in the location bar, not about the search ;)
To be honest, I am not sure anymore which problem I was trying to solve over a year ago ;) Anyway I just noticed that I am still runing an old 1.6.10-git version of Thunar, so I will upgrade to the latest release and see if my other list of bugs/features have been resolved in the mean time. Thanks.
The patch enables case independent matching, but it breaks auto completion.
Created attachment 9564 quick diff This seems to work.
Patch works nice here, thanks Theo ! I only would rename the arguments of "thunar_path_entry_has_prefix_casefolded" to better reflect their purpose .. e.g: thunar_path_entry_has_prefix_casefolded (const gchar *string, const gchar *prefix) Besides that, looks good to me to get pushed
Created attachment 9591 patch
Theo Linkspfeifer referenced this bugreport in commit c58510b4851f62cf8dac6233df140e3f6c19d4ca Make path entry matching case-insensitive (Bug #12747) https://git.xfce.org/xfce/thunar/commit?id=c58510b4851f62cf8dac6233df140e3f6c19d4ca
Pushed to master, thank you for your contribution !
I am the original reported. I just wanted to thank you for this improvement.