Bug 168530 - Allow ordering of saved profiles in Konsole (alphabetical, reverse etc)
Summary: Allow ordering of saved profiles in Konsole (alphabetical, reverse etc)
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 232025 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-06 18:43 UTC by Hamish
Modified: 2021-11-19 14:32 UTC (History)
15 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
profiles are sorted alphabetically (39.64 KB, image/png)
2011-10-17 07:50 UTC, Jekyll Wu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hamish 2008-08-06 18:43:41 UTC
Version:            (using KDE 4.1.0)
Installed from:    Ubuntu Packages
OS:                Linux

Konsole allows you to manage saved profiles which is very useful, but after adding a few they can become messy. It is difficult to find profiles once more than 10 are added. It would be really useful if there was the ability to sort saved profiles, even if this was just on alphabetical by default.

Behavior/To reproduce:
Add a new saved profile
Click "file" to open menu, see saved profiles listed in order of creation

Expected behavior:
Add a new saved profile
Click "file" to open menu, see saved profiles in easy to find alphabetical order
Comment 1 Fredrik Uddin 2008-10-01 08:54:31 UTC
Can only confirm that this is a real problem when having a lot of saved profiles.
Comment 2 Fredrik Uddin 2008-10-01 08:55:41 UTC
*** This bug has been confirmed by popular vote. ***
Comment 3 Kenneth Hedlund 2008-10-01 09:06:49 UTC
Yeah, It would be nice if this was fixed!
Comment 4 Gilboa Davara 2008-10-27 11:32:16 UTC
/+1.
I've an exact copy of my default set of profiles on each of my machines. (I usually just sync the  ~/.kde/share/apps/konsole/*.profile files)
... Sadly enough, the order in which this profiles appear on each machine is radically different. Very disturbing.

- Gilboa
Comment 5 Olaf Lenz 2008-10-29 14:49:41 UTC
... and it would be even better, if the profiles could also be grouped in a menu-like fashion (like the bookmarks).
However, I see that this might be even more work, so allowing them to be sorted manually (please not only alphabetically) would be fine for now.

As a side note, I would hope to find the same feature in the konsole profile plasmoid (see bug 173834).
Comment 6 Kurt Hindenburg 2009-02-01 07:27:00 UTC
How about having the profiles in the Manage Profile dialog be drag-n-drop to re-order them?  This would allow the user to move them around to the order they want.
The coding seems doable at first glance.

Perhaps having a check box on the side for 'Sort Alphabetically'?
Comment 7 Gilboa Davara 2009-02-01 14:33:38 UTC
Any type of order, as long it's consistent across different machines, it better that the current random order... 
Comment 8 Kurt Hindenburg 2009-02-02 03:29:44 UTC
SVN commit 919994 by hindenburg:

A temporary fix; profiles will only be sorted upon startup and new window.

CCBUG:168530


 M  +14 -2     ProfileList.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=919994
Comment 9 Alain Knaff 2009-02-12 15:19:53 UTC
Also, the order of the profiles in konsole's settings->ChangeProfile and settings->ManageProfiles seems to be different than the ordering in the "Konsole Profiles" plasmoid.

If you add a way to manually sort the profiles within konsole, please make sure that the "Konsole Profiles" plasmoid uses the same order.
Comment 10 Gilboa Davara 2009-04-03 08:26:24 UTC
Any idea when this patch will land? 4.2.3? 4.3?

- Gilboa
Comment 11 Kurt Hindenburg 2009-04-10 06:41:38 UTC
I'm trying for 4.3.  The GUI portion is more complicated that I thought.  If nothing else I may just put in sorting if users manually edit the profiles.
Comment 12 Gilboa Davara 2009-04-10 10:40:35 UTC
Thanks for the update.

- Gilboa
Comment 13 Kurt Hindenburg 2009-04-26 17:46:19 UTC
SVN commit 959584 by hindenburg:

Add support for reading the profiles' menu index (favorites) from the profile
file.
This patch doesn't write the index, only reads.

CCBUG: 18530


 M  +10 -0     Profile.cpp  
 M  +10 -1     Profile.h  
 M  +2 -12     ProfileList.cpp  
 M  +75 -0     SessionManager.cpp  
 M  +12 -1     SessionManager.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=959584
Comment 14 Kurt Hindenburg 2009-04-26 18:07:30 UTC
SVN commit 959590 by hindenburg:

Code to handle moving the profiles in the menu.  Move buttons disabled for now until code to write
profiles' menu index is committed (written).

GUI
CCBUG: 168530


 M  +59 -2     ManageProfilesDialog.cpp  
 M  +7 -0      ManageProfilesDialog.h  
 M  +27 -1     ManageProfilesDialog.ui  


WebSVN link: http://websvn.kde.org/?view=rev&revision=959590
Comment 15 Gilboa Davara 2010-01-20 11:42:38 UTC
Fixed in 4.3/4.4rc1.
Thanks!

Bug can be closed.
Comment 16 Gilboa Davara 2010-08-25 10:38:03 UTC
I'm using 4.5 SC and sort doesn't work.
Any idea what's wrong?

- Gilboa
Comment 17 avals 2010-09-05 10:36:00 UTC
I'm using 4.5.1. The "Move Up" and "Move Down" buttons are greyed out. I can't sort profiles.
Comment 18 Kurt Hindenburg 2010-09-10 04:41:15 UTC
The up/down are disabled as it wasn't as easy as I thought to implement them.  I've redone the dialog which should allow DND.  I'm hoping to get this in 4.6
Comment 19 Gilboa Davara 2010-09-12 09:31:11 UTC
I should note that sorting is completely broken in SC 4.5 on two machines.
Comment 20 Gilboa Davara 2010-12-22 20:54:28 UTC
Any updates?
I'm 4.6b2 and as far as I could see, profiles are still unsorted.

- Gilboa
Comment 21 Jekyll Wu 2011-08-18 01:09:58 UTC
*** Bug 232025 has been marked as a duplicate of this bug. ***
Comment 22 Gilboa Davara 2011-10-16 17:46:21 UTC
Any chance of getting this included in 4.8.

- Gilboa
Comment 23 Jekyll Wu 2011-10-17 07:50:05 UTC
Created attachment 64623 [details]
profiles are sorted alphabetically

From my observation and understanding of the code, konsole currently does sort profiles alphabetically. 

1). favorite profiles("Show In Menu" checked) come before non-favorite profiles.  They are sorted alphabetically.
2). non-favorite profiles are also sorted alphabetically.

If that is not the case, check the "MenuIndex=..." line in your profiles on the disk. That line should be "MenuIndex=0" to guarantee above behavior.

I am using the devel version.
Comment 24 Gilboa Davara 2011-10-22 09:47:29 UTC
Switching all .profile files to MenuIndex=0 solved the problem, thanks!
IMHO bug can be closed.

- Gilboa
Comment 25 g111 2013-01-23 07:20:19 UTC
IMHO this *old* report can be closed as fixed as profiles are sorted in alphabetical order.
Comment 26 Alain Knaff 2013-01-23 17:14:29 UTC
In which version is it/will it be fixed? I just tried it in konsole 2.8.5 of kde 4.8.5, and the order displayed is still the order of creation, not alphabetical
Comment 27 Jekyll Wu 2013-01-24 07:56:10 UTC
(In reply to comment #26)
> In which version is it/will it be fixed? I just tried it in konsole 2.8.5 of
> kde 4.8.5, and the order displayed is still the order of creation, not
> alphabetical

Should be fixed in 4.8 and later. If not, read the "If" part in comment #23.  Hmm, I probably need to write one kconf_upgrade script to automatically remove those problematic "MenuIndex=" entries. I wasn't aware of kconf_upgrade when posting comment #23, as a newbie to KDE development.

(In reply to comment #25)
> IMHO this *old* report can be closed as fixed as profiles are sorted in
> alphabetical order.

I prefer to leave this report open for more time. I still think allowing more sorting methods is a good idea.
Comment 28 Jekyll Wu 2013-01-24 22:17:27 UTC
Git commit 9b89bdc570f43ae36354727992f420fd0d0a5499 by Jekyll Wu.
Committed on 24/01/2013 at 09:20.
Pushed by jekyllwu into branch 'master'.

Removing remaining problematic MenuIndex entries from profiles

M  +1    -0    data/updaters/CMakeLists.txt
A  +25   -0    data/updaters/konsole-2.10.0-remove-menuindex-from-profiles.sh
M  +3    -0    data/updaters/konsole.upd

http://commits.kde.org/konsole/9b89bdc570f43ae36354727992f420fd0d0a5499
Comment 29 Jekyll Wu 2013-01-24 22:18:53 UTC
Git commit 998edf5d0390f1aceeb2f2ae18f7c0d46e67e697 by Jekyll Wu.
Committed on 24/01/2013 at 09:20.
Pushed by jekyllwu into branch 'KDE/4.10'.

Removing remaining problematic MenuIndex entries from profiles
(cherry picked from commit 6c81d328c7ce896973c9bdd09af28bd28321f086)

M  +1    -0    data/updaters/CMakeLists.txt
A  +25   -0    data/updaters/konsole-2.10.0-remove-menuindex-from-profiles.sh
M  +3    -0    data/updaters/konsole.upd

http://commits.kde.org/konsole/998edf5d0390f1aceeb2f2ae18f7c0d46e67e697
Comment 30 Peter Albrecht 2013-06-05 18:36:15 UTC
Jekyll Wu, if you intend to add further sort methods, please have a look at bug #168530, which is about sorting Konsole profiles in the "Konsole Profiles"-Widget. It might be related to this bug. Thanks!
Comment 31 Peter Albrecht 2013-06-05 18:38:09 UTC
(In reply to comment #30)
> ... please have a look at bug #168530 ...
Sorry, I made a copy&paste error. I meant bug #173834.
Comment 32 George L. Emigh 2020-05-17 19:17:35 UTC
It's worse in the last many version, I power off my machine each night, next day or after a reboot the order of the konsole profiles widget is random, NEVER the same order, at least if it could stay in one order that would be great.

I have close to 100 entries, and it's a problem.

Thanks for reading.

Qt: 5.14.2
KDE Frameworks: 5.70.0
konsole 19.12.3
Comment 33 Alexander Lohnau 2020-06-13 15:48:42 UTC
I have the same issue with the KDevelop plasmoid :/
(They behave very similar)
Comment 34 Alexander Lohnau 2020-06-13 16:25:36 UTC
They are in a consistent order in the dataengine added.

This is just a problem in the UI, but I am not very familiar with QML and not at all familiar with the plasma components.
Comment 35 Ahmad Samir 2021-11-19 01:48:42 UTC
Profiles have been sorted alphabetically for quite some time in Konsole; does anyone still see this issue?
Comment 36 Alan Prescott 2021-11-19 05:11:24 UTC
Looks OK to me - if OP agrees I's mark it a sRESOLVED
Comment 37 Ahmad Samir 2021-11-19 08:30:00 UTC
Closing, feel free to reopen if you still see this issue.
Comment 38 g111 2021-11-19 10:34:51 UTC
Operating System: Kubuntu 21.10
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2

In my case the profiles are not sorted alphabetically. In the "Manage profiles" settings of konsole they are sorted correctly. But in the konsole profiles they are completely unsorted.
Comment 39 g111 2021-11-19 10:36:31 UTC
I have missed a word: "But in the konsole profiles WIDGET they are completely unsorted."
Comment 40 Ahmad Samir 2021-11-19 12:57:30 UTC
By widget you mean a plasma applet? if so, please file a new bug report against kdeplasma-addons, which is where that applet comes from.
Comment 41 g111 2021-11-19 14:26:28 UTC
Ah, ok, sorry. I have not noticed that this report only regards to the konsole settings itself. (I have reported a plasma widget sorting issue in earlier already. I am going to find it again.) I now set the status back to fixed.
Comment 42 Ahmad Samir 2021-11-19 14:32:14 UTC
No problem.