Bug 497109

Summary: Copy all text in a code block
Product: [Applications] KleverNotes Reporter: Félim Whiteley <felim>
Component: Markdown parserAssignee: Louis Schul <schul9louis>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Example of a code block

Description Félim Whiteley 2024-12-06 01:30:48 UTC
Created attachment 176381 [details]
Example of a code block

In the code display it would be very handy to have a icon to the right side that would copy all text to clipboard, like a series of commands etc. so you didn't need to highlight and select copy with right click.

I've attached what I mean, essentially and text contained within a 3-backtick area. 

Hope this makes sense?
Comment 1 Louis Schul 2024-12-06 16:07:51 UTC
(In reply to Félim Whiteley from comment #0)
> I've attached what I mean, essentially and text contained within a
> 3-backtick area. 
> 
> Hope this makes sense?

This makes total sense ! Pretty much what Gitlab offers for example.
It's a really good idea, I will had an issue related to this, thank you very much. :-)
Comment 2 Louis Schul 2025-02-27 08:56:50 UTC
Solved by: https://invent.kde.org/office/klevernotes/-/merge_requests/140

Thank you for your report. :)