Bug 387397 - Konsole should not include font information in copy/paste (or provide option to not include it)
Summary: Konsole should not include font information in copy/paste (or provide option ...
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: copy-paste (show other bugs)
Version: master
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-28 12:57 UTC by Jim Duchek
Modified: 2018-02-14 21:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 18.04


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Duchek 2017-11-28 12:57:03 UTC
Konsole copies font/formatting information to the clipboard.  I'm not sure this is, strictly speaking, a 'bug', but it's a 'feature' I can't imagine anyone would want from a shell/text console.  It is highly annoying pasting anything into Chrome/GMail or LibreOffice and getting whatever random monospace font it tries to use.  (Yes, I can right-click and choose 'paste as plain text', but why should I not be able to middle-click?)  A shell console should always be considered plain text and not have associated font information.

This should be turned off for Konsole, or at least made a profile option.
Comment 1 Kurt Hindenburg 2018-02-14 03:47:06 UTC
https://phabricator.kde.org/D10448 should be fixed for next release 18.04
Comment 2 Ahmad Samir 2018-02-14 05:58:13 UTC

*** This bug has been marked as a duplicate of bug 350687 ***
Comment 3 Kurt Hindenburg 2018-02-14 19:42:37 UTC
Git commit caf0ab2b7584c899a6cded2d6d2218990c126bae by Kurt Hindenburg.
Committed on 14/02/2018 at 19:40.
Pushed by hindenburg into branch 'master'.

Add a profile property to toggle copying text as HTML

The default behavior hasn't change.  Toggling this off will cause all
copy/paste to be text only.
FIXED-IN: 18.04
Differential Revision: https://phabricator.kde.org/D10448

M  +9    -0    src/EditProfileDialog.cpp
M  +1    -0    src/EditProfileDialog.h
M  +26   -25   src/EditProfileDialog.ui
M  +2    -0    src/Profile.cpp
M  +8    -0    src/Profile.h
M  +16   -6    src/TerminalDisplay.cpp
M  +3    -0    src/TerminalDisplay.h
M  +2    -0    src/ViewManager.cpp

https://commits.kde.org/konsole/caf0ab2b7584c899a6cded2d6d2218990c126bae
Comment 4 Christoph Feck 2018-02-14 21:28:40 UTC
Kurt, please use --author when applying the patch manually.