New items and directories are added above "parent dir" row
joshas opened this issue · comments
Commit 43d93a9 introduced an issue: create file and create directory commands add new items above "parent dir" [..] item:
New files created in other file managers also appear on top.
Yes, noticed that myself as well. Thanks for reporting. Basically new approach with sorting is to have custom hidden column which is populated with data which GTK can use to sort items. Issue with this is that generate_sort_data
is not called when adding new item so it ends up with empty data for sorting and GTK just puts it at top.
In addition to calling said method we should also modify it to support dedicated iter_list
which can be provided to allow us to generate sort data only for few items and not whole list.