Bug 473163

Summary: KGlobalAccel: Let me name descriptions for custom function
Product: [Applications] systemsettings Reporter: Maximilian Böhm <mabo>
Component: kcm_keysAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: a.skembris, fanzhuyifan, gudvinr+kde, jcfisher, kde, kde, kishore96, mabo, MurzNN, nate, saunders, smowtenshi, sthenujan2002
Priority: NOR    
Version: 5.27.7   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.2.0
Sentry Crash Report:
Attachments: hotkey popup
hotkey description

Description Maximilian Böhm 2023-08-08 17:32:21 UTC
KGlobalAccel: Let me name custom function descriptions

Since KHotkeys is getting the ax in Plasma 6, I’m currently migrating my several custom shortcuts over to KGlobalAccel. In doing so, I found it strange that there aren’t any function descriptions. Instead of a complicated line with arguments for PulseAudio I want to read a short custom name of my shortcut in the list. Something I can still understand a week later.
Comment 1 thenujan 2023-08-10 02:57:46 UTC
A merge request is already in the works https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/1644
Comment 2 Nicolas Fella 2024-01-19 14:53:22 UTC
*** Bug 480027 has been marked as a duplicate of this bug. ***
Comment 3 jcfisher 2024-03-13 19:54:32 UTC
Is there any progress on this? With Plasma 6 going to repositories, this functionality that KHotkeys had is really needed for KGlobalAccel.
Comment 4 cwo 2024-07-01 09:57:46 UTC
*** Bug 489446 has been marked as a duplicate of this bug. ***
Comment 5 saunders 2024-08-03 00:31:11 UTC
Was just about to post a bug and came across this one, which was close enough.

I have upgraded to kde6 and under Shortcuts > Commands it still has everything from KDE5, and they for the most part work, but I cannot change them. For example in ~/.config/khotkeysrc

[Data_5]
Comment=Toggle between full speed and normal.
Enabled=true
Name=Adjust Fan Speed
Type=SIMPLE_ACTION_DATA

[Data_5Actions]
ActionsCount=1

[Data_5Actions0]
CommandURL=/usr/local/bin/fan_toggle_full_throttle.sh
Type=COMMAND_URL

[Data_5Conditions]
Comment=
ConditionsCount=0

[Data_5Triggers]
Comment=Simple_action
TriggersCount=1

[Data_5Triggers0]
Key=Volume Down 
Type=SHORTCUT
Uuid={8829721f-8a47-4cca-a7f4-45111daaf719}

Now if I go to edit this I only get the two images (khotkey1 khotkey2). The comment "Toggle between full speed and normal." is gone, if I click on the edit button it just shows the name "Adjust Fan Speed", the command cannot be seen. Perhaps with a fresh khotkeysrc this will work better but right now this is a bit janky.
Comment 6 saunders 2024-08-03 00:31:44 UTC
Created attachment 172232 [details]
hotkey popup
Comment 7 saunders 2024-08-03 00:32:08 UTC
Created attachment 172233 [details]
hotkey description
Comment 8 fanzhuyifan 2024-08-11 16:17:01 UTC
marking to confirmed since the MR was basically abandoned
Comment 9 fanzhuyifan 2024-08-11 16:17:13 UTC
*** Bug 491559 has been marked as a duplicate of this bug. ***
Comment 10 Bug Janitor Service 2024-08-11 17:39:52 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2432
Comment 11 fanzhuyifan 2024-08-19 14:13:52 UTC
Git commit 535a67417b93e4f3856f027fd9c5693b8725c588 by Yifan Zhu.
Committed on 19/08/2024 at 13:59.
Pushed by fanzhuyifan into branch 'master'.

kcms/keys: support naming command

Add customizable names to custom command shortcuts, which makes them
easier to keep track of.

Original author: Thenujan Sandramohan <sthenujan2002@gmail.com>

M  +1    -1    kcms/keys/basemodel.cpp
M  +20   -8    kcms/keys/kcm_keys.cpp
M  +4    -2    kcms/keys/kcm_keys.h
M  +36   -19   kcms/keys/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/535a67417b93e4f3856f027fd9c5693b8725c588