Bug 4255 - Switching 'Thread view' on/off discards message selection
Summary: Switching 'Thread view' on/off discards message selection
Status: REOPENED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: UI/Message List (show other bugs)
Version: 3.17.5
Hardware: PC Linux
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2019-10-06 10:38 UTC by Santa Claws
Modified: 2019-10-07 10:46 UTC (History)
0 users

See Also:


Attachments

Description Santa Claws 2019-10-06 10:38:38 UTC
STR:

1. Select one or more messages while 'Thread view' is on
2. Press Ctrl+T to disable 'Thread view'

EXPECTED:

Message selection should remain.

ACTUAL:

The 'last unread' message gets selected (as set in "Set message selection when entering a folder" preference), i.e. Claws considers switching on/off of 'Thread view' as entering the folder.

version 3.17.4git42
Comment 1 Paul 2019-10-06 11:46:26 UTC
now implemented in git.
Comment 2 Santa Claws 2019-10-06 19:17:54 UTC
OK, I have built 3.17.4git45

Now it works as expected but only when single message is selected. When multiple ones are selected only one which was selected first remains selected after the switching.

Would you reconsider making it work with multi-selections please?
Comment 3 Paul 2019-10-06 20:48:30 UTC
Why would that be worthwhile?
Comment 4 Santa Claws 2019-10-07 10:46:07 UTC
Because it gives efficiency and convenience. Also it is expected behavior and a common principle in various programs.

Conceptually:

Selection and view are separate things. Selection is a property of the selected entity, not of the view. One selects things in order to work with them further, not just to view them. It may be easier to make a selection in one view and then work on it in another. So the "view" is just a representation of the information in a different form. It must not affect the properties of the viewed entities (one of which is whether they are selected or not).

Example in Libreoffice Calc: you can select cells and switching from 'Normal' to 'Page break' view does not affect selection.

Example task in Claws (just one I can think of right now): Select the latest N messages from a thread with multiple branches and sub-subjects for further manipulation. Currently it is easy to select all messages of a thread in thread view, yet it is easier to select messages chronologically in a linear (non-threaded) view. This means the process would need some kind of 2-pass "cross-section" of selection, e.g.

1. Select all messages of the thread in thread view
2. Switch to linear view
3. Unselect the older ones

Currently this is not possible without using filters or other gymnastics which can be a quite time consuming if one uses email actively.

Note You need to log in before you can comment on or make changes to this bug.