Bug 408995 - provide a shortcut for plasma notification history cleaning
Summary: provide a shortcut for plasma notification history cleaning
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.23.0
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords: junior-jobs
: 429711 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-06-21 13:27 UTC by Till Schäfer
Modified: 2023-08-05 13:53 UTC (History)
7 users (show)

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


Attachments
build.log (23.94 KB, text/x-log)
2019-06-26 13:09 UTC, Anton Pappas
Details
attachment-11322-0.html (2.29 KB, text/html)
2020-09-11 09:47 UTC, Anton Pappas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Till Schäfer 2019-06-21 13:27:39 UTC
It would be nice to have a shortcut to clear the notification history of plasma. 

A typical workflow for me is: 
1) have a quick look in the history if anything important is there, i.e., something I need to take care of. 
2) clear history afterwards

The first point is possible using the keyboard, the second not.
Comment 1 Anton Pappas 2019-06-25 09:47:43 UTC
Hi all,

Can I try this as a junior job/first contribution?
Comment 2 Kai Uwe Broulik 2019-06-25 10:11:51 UTC
Sure, go ahead.
Comment 3 Nate Graham 2019-06-25 10:20:35 UTC
Of course, no need to even ask! :) Let us know if you need help with anything.
Comment 4 Anton Pappas 2019-06-26 13:09:34 UTC
Created attachment 121160 [details]
build.log

Any idea what I could do to fix this? I have libXcursor-devel installed.
(Building on latest Tumbleweed)
Comment 5 Anton Pappas 2019-06-26 13:10:32 UTC
And do I actually need to build plasma-desktop or is plasma-workspace enough?
Comment 6 Nate Graham 2019-06-26 13:25:41 UTC
If you're targeting/building from git master, you want to do everything Plasma-related (see https://community.kde.org/Get_Involved/development#Plasma). If you want to make your patch against the Plasma/5.16 branch, then you can do just plasma-workspace.
Comment 7 Anton Pappas 2019-06-28 13:09:05 UTC
So, I tried adding this functionality but I am stuck as to where to have the key combination defined and changed. I couldn't find a QML/Kirigami plasmoid that defines shortcuts for itself as an example. For example the clipboard applet calls the Klipper settings. That UI is done fully in C++ and uses KShortcutsEditor.

Should I try to add a panel to the notifications kcm? Is it even possible to put a KShortcutsEditor widget there even though it's a qml ui?
Comment 8 Domenico Panella 2020-09-11 09:43:31 UTC
I could do this bug.
I'd  have to add standard Shortcut and a action for desktop.
I only have to understand what to invoke for to clear notifications history.
I image that it is the same code that invoked when we click on X button of the widget on the plasma panel.
Comment 9 Anton Pappas 2020-09-11 09:47:40 UTC
Created attachment 131557 [details]
attachment-11322-0.html

Feel free to as I couldn't make it work.

________________________________
From: kdedom <bugzilla_noreply@kde.org>
Sent: Friday, September 11, 2020 11:43 AM
To: Antonios Pappas <apappas@suse.com>
Subject: [plasmashell] [Bug 408995] provide a shortcut for plasma notification history cleaning

https://bugs.kde.org/show_bug.cgi?id=408995

kdedom <pandom79@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pandom79@gmail.com

--- Comment #8 from kdedom <pandom79@gmail.com> ---
I could do this bug.
I'd  have to add standard Shortcut and a action for desktop.
I only have to understand what to invoke for to clear notifications history.
I image that it is the same code that invoked when we click on X button of the
widget on the plasma panel.

--
You are receiving this mail because:
You are on the CC list for the bug.
Comment 10 Domenico Panella 2020-09-12 15:43:40 UTC
I created two merge requests.
The first about Kconfig project that provide a keyboard shortcut that i set to F9.
The second about plasma desktop project that it run when we press F9 key.
I only need help to understand which api to invoke in the plasma slot for to clean notifications history.
https://invent.kde.org/frameworks/kconfig/-/merge_requests/25
https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/148
Comment 11 Domenico Panella 2020-09-13 15:19:11 UTC
(In reply to kdedom from comment #10)
> I created two merge requests.
> The first about Kconfig project that provide a keyboard shortcut that i set
> to F9.
> The second about plasma desktop project that it run when we press F9 key.
> I only need help to understand which api to invoke in the plasma slot for to
> clean notifications history.
> https://invent.kde.org/frameworks/kconfig/-/merge_requests/25
> https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/148

https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/260
Comment 12 Riccardo Robecchi 2020-11-30 18:02:56 UTC
*** Bug 429711 has been marked as a duplicate of this bug. ***
Comment 13 Justin Zobel 2023-08-05 13:53:31 UTC
This is still open for anyone to do as a junior job.