By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1103

Summary: Rearrangeable items in the taskbar
Product: TDE Reporter: Kris <krisgamrat>
Component: tdebaseAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: wishlist CC: bugwatch, darrella, kb9vqf, krisgamrat
Priority: P5    
Version: R14.0.0 [Trinity]   
Hardware: All   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:

Description Kris 2012-07-12 20:35:44 CDT
One thing I'd like to see is the ability to rearrange items in the taskbar via drag-and-drop, e.g. if I have lots of stuff open and displayed in the taskbar, I can grab an item with the mouse cursor, drag it to another position in the taskbar, and drop it. I know technically this is what multiple desktops are for, but there are people (like myself) who never have enough stuff open to consider using multiple desktops, and even those that do may not think to use them (mostly Windows and Mac converts). Some of those people may find this useful, though not vital :-)
Comment 1 Darrell 2012-07-13 08:53:43 CDT
I have toyed with this idea for a long time. I'd like this option too. I believe this taskbar option should be set to off by default.

Virtual desktops do not solve all organization challenges. Within any virtual desktop often I find I want each app in a specific order in my taskbar simply because that is the way my mind is wired and that is the order I want those apps for the specific manner I am working.

There is precedent for adding this option: both konqueror and konsole support moving tabs to the left or right.

A suggestion: rather than drag-and-drop to move taskbar items, I think the manner in which konqueror and konsole function would be appropriate. That is, in the popup context menu, add a "Move Task Left" and "Move Task Right" option. My thinking is that sometimes the taskbar is full, even when using grouping, which would render drag-and-drop tricky. Using that method would allow (if possible) using the same keyboard shortcuts used in konqueror and konsole: Ctrl-Shift-Left and Ctrl-Shift-Right, which would then be consistent.
Comment 2 Kris 2012-07-13 17:12:40 CDT
(In reply to comment #1)
> A suggestion: rather than drag-and-drop to move taskbar items, I think the
> manner in which konqueror and konsole function would be appropriate. That is,
> in the popup context menu, add a "Move Task Left" and "Move Task Right" option.
> My thinking is that sometimes the taskbar is full, even when using grouping,
> which would render drag-and-drop tricky. Using that method would allow (if
> possible) using the same keyboard shortcuts used in konqueror and konsole:
> Ctrl-Shift-Left and Ctrl-Shift-Right, which would then be consistent.

That could get a little confusing if the taskbar is large enough to support 2+ rows of buttons, such as when the panel is set to the "Normal" and "Large" sizes. If this is the case, and your suggestion is used, there should also be a "Move Task Up" and a "Move Task Down" too.

Your suggestion would probably work best for most people, though I think mine should still be included (but disabled by default to avoid both your concern and having people rearrange stuff by accident). There are probably a few people who use it, but most people will probably leave it off in favor of your context menu idea.
Comment 3 Darrell 2013-04-03 22:19:11 CDT
FYI: KDE4 has this option. Very, very nice. Perhaps some code snippets can be massaged from KDE4.
Comment 4 Darrell 2013-04-12 13:27:22 CDT
Note: the code for manual sorting in KDE4 is in kde-workspace/plasma/desktop/applets/tasks/tasks.cpp.
Comment 5 Timothy Pearson 2013-04-12 16:53:12 CDT
Since I was already in the guts of the taskbar, I went ahead and implemented initial task reordering support in GIT hash 18098b4.  This includes a taskbar KControl settting to enable/disable the new drag+drop support.  Menu entries for moving tasks have not yet been implemented.

NOTE: I did not look at the KDE 4 version of this feature at all.  This is not an attempt at NIH, rather I have simply known for some time how I would like this feature to work, and therefore I implemented it the way that I consider intuitive.  Comments and suggestions are of course welcome. :-)
Comment 6 Darrell 2013-04-12 17:30:10 CDT
Huh. :)

If I understand correctly, there is now a GUI control and underlying rc file key, but actually dragging taskbar items does not yet work?
Comment 7 Timothy Pearson 2013-04-12 21:18:04 CDT
(In reply to comment #6)
> Huh. :)
> 
> If I understand correctly, there is now a GUI control and underlying rc file
> key, but actually dragging taskbar items does not yet work?

Dragging works, but the menu items for moving the tasks via their popup menus are still missing.
Comment 8 Timothy Pearson 2013-04-13 15:01:49 CDT
(In reply to comment #7)
> (In reply to comment #6)
> > Huh. :)
> > 
> > If I understand correctly, there is now a GUI control and underlying rc file
> > key, but actually dragging taskbar items does not yet work?
> 
> Dragging works, but the menu items for moving the tasks via their popup menus
> are still missing.

Menu items added in GIT hash 3df12cd.

I am going to mark this RESOLVED FIXED, any further enhancements or bugs should be reported in a new, more specific bug report.
Comment 9 Darrell 2013-04-13 15:12:55 CDT
Groovy. :) I'm in the middle of a build run testing patches for bug report 1446 (kde-chunk.xsl), but I'm looking forward to testing this feature. Thanks!
Comment 10 Darrell 2013-04-13 21:39:40 CDT
Very nice, Tim!
Comment 11 Darrell 2013-04-21 07:56:12 CDT
I am REALLY enjoying this mod --- like a cat purring!
Comment 12 Kris 2013-04-21 08:58:09 CDT
I have the menu items to move stuff, but not drag and drop.

Either way, I love the fact that I can now move stuff ;-)
Comment 13 Timothy Pearson 2013-04-21 14:33:02 CDT
(In reply to comment #12)
> I have the menu items to move stuff, but not drag and drop.
> 
> Either way, I love the fact that I can now move stuff ;-)

You probably need to switch drag and drop on in the taskbar settings module.