MeanEYE / Sunflower

Small and highly customizable twin-panel file manager for Linux with support for plugins.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:
Screenshot from 2020-10-06 23-21-43

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.

#489 fixed the issue.