Bug 497109 - Copy all text in a code block
Summary: Copy all text in a code block
Status: RESOLVED FIXED
Alias: None
Product: KleverNotes
Classification: Applications
Component: Markdown parser (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist (vote)
Target Milestone: ---
Assignee: Louis Schul
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-06 01:30 UTC by Félim Whiteley
Modified: 2025-02-27 08:56 UTC (History)
0 users

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


Attachments
Example of a code block (6.94 KB, image/png)
2024-12-06 01:30 UTC, Félim Whiteley
Details

Note You need to log in before you can comment on or make changes to this bug.
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. :)