Skip to content

Use sort menu as well for detailed view (#139)

Ghost User requested to merge (removed):details-view-sort-menu into master

Add "Arrange Items" menu to details view (listview). It uses the same accelerator bindings as in icon view, so the same hotkeys can be used.

This MR also changes the behavior if one selects an action that is already applied. It will now toggle the sort order (Ascending/Descending) of the current column. This partly solves #130 (closed) , However adding an Action to Toggle Sort Direction is trivial, and will be done in a separate commit.

Previously the Arrange Items sub-menu was specific to icon-view. which meant that all the functions where static in abstract-icon-view.c . Here I have moved all those functions to standard-view (which is the parent class of all views), now all views will inherit the menu, actions and functions related to sorting. This is why the line count is 100 lines less is more.

related issues

issue title info
#139 (closed) sort order in detailed view mode can be changed only clicking column headers beelze: 2016-05-09
#183 (closed) [request] sort action in Details/Tree-view budRich: 2017-12-07
#233 (closed) Arrange Items context menu missing from Detailed List view Dan MacDonald: 2019-02-19
#9600 enable keyboard shortcuts for column sorting Richard Tatyr: 2012-12-07
#9301 add sort-by-column keyboard shortcut gryllida: 2012-09-15
#130 (closed) Single hotkey to switch file list ascending/descending
Edited by Ghost User

Merge request reports

Loading