Giter Club home page Giter Club logo

Comments (6)

ufleisch avatar ufleisch commented on July 23, 2024

I can confirm this.
To fix it, you could add in QlipperItem::QlipperItem(QClipboard::Mode mode)

if (format != "MULTIPLE")
    m_content[format] = mimeData->data(format);

However, this could be further improved. There are still useless binary entries in the clipboard history, because Emacs has a lot of strange (probably internal) formats in its clipboard entries ("TIMESTAMP", "MULTIPLE", "text/plain", "COMPOUND_TEXT", "TARGETS", "LENGTH", "DELETE", "FILE_NAME", "CHARACTER_POSITION", "LINE_NUMBER", "COLUMN_NUMBER", "OWNER_OS", "HOST_NAME", "USER", "CLASS", "NAME", "ATOM", "INTEGER", "SAVE_TARGETS"
"text/plain;charset=utf-8" for a simple copied text). Maybe it would be better to restrict the saved content to "real" MIME data, e.g. using something like this:

if (format.contains(QLatin1Char('/')))
    m_content[format] = mimeData->data(format);

or only store the basic data types provided by QMimeData (text(), html(), urls(), imageData(), colorData()).

from qlipper.

RalfJung avatar RalfJung commented on July 23, 2024

That sounds good. Any chance some patch like this could get in? Is qlipper maintained?

from qlipper.

agaida avatar agaida commented on July 23, 2024

just make a PR i would suggest :)

from qlipper.

RalfJung avatar RalfJung commented on July 23, 2024

I patched it locally, and will see whether I notice any breakage.

from qlipper.

ufleisch avatar ufleisch commented on July 23, 2024

Just made a PR.

from qlipper.

palinek avatar palinek commented on July 23, 2024

fixed in #37

from qlipper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.