Bug 499454 - Documents Tree Plugin doesn't keep Custom Sorting between sessions
Summary: Documents Tree Plugin doesn't keep Custom Sorting between sessions
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: sessions (other bugs)
Version First Reported In: 24.12.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-03 10:56 UTC by Dom
Modified: 2025-08-30 17:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dom 2025-02-03 10:56:31 UTC
STEPS TO REPRODUCE
1. Open Kate
2. Activate the Documents Tree in the Plugins Manager
3. Select "Custom Sorting" in the Documents plugin setting
4. Re-arrange your documents
3. Quit Kate
5. Re-open Kate

OBSERVED RESULT
The order of the documents returns to the chronological one (the oldest on top, the newest on the bottom).

EXPECTED RESULT
The custom sorting should be maintained between sessions.


ADDITIONAL INFORMATION
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1
Kernel Version: 5.15.173-1-MANJARO (64-bit)
Graphics Platform: Wayland
Comment 1 Waqar Ahmed 2025-02-03 11:48:52 UTC
> 3. Select "Custom Sorting" in the Documents plugin setting

Where exactly do you set this?
Comment 2 Dom 2025-02-03 14:11:51 UTC
(In reply to Waqar Ahmed from comment #1)
> > 3. Select "Custom Sorting" in the Documents plugin setting
> 
> Where exactly do you set this?

Setting -> Configure Kate -> Documents (This is available if you've activated the plugin)
Here there is a drop-down menu after "sort by:"
Comment 3 Waqar Ahmed 2025-02-03 14:16:34 UTC
So, if I understand correctly. 

- you set the setting to custom sorting
- open some docs and do custom sorting
- close and reopen kate
- on reopening the sorting of the open docs isn't retained?
Comment 4 Dom 2025-02-03 15:31:19 UTC
(In reply to Waqar Ahmed from comment #3)
> So, if I understand correctly. 
> 
> - you set the setting to custom sorting
> - open some docs and do custom sorting
> - close and reopen kate
> - on reopening the sorting of the open docs isn't retained?

Correct
Comment 5 Waqar Ahmed 2025-08-30 17:34:53 UTC
Can't reproduce anymore with 25.08+. This was most likely fixed along with other session related fixes.