Bug 423213

Summary: Sort items by desktop
Product: [Plasma] plasmashell Reporter: Marcos Dione <mdione>
Component: Task Manager and Icons-Only Task ManagerAssignee: Eike Hein <hein>
Status: RESOLVED FIXED    
Severity: wishlist CC: gobonja, nate, plasma-bugs
Priority: NOR    
Version: 5.18.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.22

Description Marcos Dione 2020-06-19 10:32:24 UTC
Just a wish, the usual task manager has this. I guess maybe they could share more code?

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 4:5.18.4.1-0ubuntu1
KDE Frameworks Version: 5.68.0-0ubuntu1
Qt Version: 5.12.8+dfsg-0ubuntu1
Comment 1 Nate Graham 2020-06-20 17:15:53 UTC
They share 100% of the code, in fact.

Can you clarify what you mean by "sort by desktop?" Do you mean that you want it only show the applications on the current desktop?
Comment 2 Marcos Dione 2020-06-22 11:17:16 UTC
No, I mean that if I have N>1 desktops, then I expect on the left the icons of the first desktop, followed by the icons of the second one, and so on. I don't know how well the LtR order maps in all cultures, though.
Comment 3 Nate Graham 2020-06-22 13:52:29 UTC
I see, thanks.
Comment 4 Marko Gobin 2021-05-02 12:09:52 UTC
I have managed to fix this locally.

By my understating of the code, icons-only uses everything from task manager with conditional show/hide options with boolean: "property bool iconsOnly: (plasmoid.pluginName === "org.kde.plasma.icontasks")"

As I see it there are 2 possible solutions:
1.combine task manager and icons-only into single applet by adding checkbox (e.g. iconTask or hideLabels) and remove icons-only applet completely

2.expose this setting when using icons-only task manager and leave applets separated


My opinion is that two applets for same thing is redudant and it introduces more maintenance burden.

Since I am new to contributing to plasma any advice and help is much appreciated.

Thanks in advance
Comment 5 Nate Graham 2021-05-03 15:50:23 UTC
They actually share almost all of the same backend code, but the two applets are presented as such for historical reasons. Personally I would be be fine with presenting them as a single applet with a "Show labels" option to switch between "traditional" and "icons-only" modes.

However this is neither here nor there; feel free to submit a merge request to expose this feature in the icons-only version for now.
Comment 6 Bug Janitor Service 2021-05-09 22:39:26 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/458
Comment 7 Nate Graham 2021-05-10 16:01:48 UTC
Fixed by Marko Gobin with https://invent.kde.org/plasma/plasma-desktop/-/commit/bc52d8b2eec30e55df61ff858e6231b3136192d6 in Plasma 5.22!