Giter VIP home page Giter VIP logo

Comments (5)

chubin avatar chubin commented on May 18, 2024 1

If you say that you can see it with xsel but you can't paste it, it means that it is copied to the selection buffer of X Window (PRIMARY), but not to the clipboard (CLIPBOARD).

It depends on that where you try to paste it in.
For example, if you paste it into xterm or vim running in xterm it is PRIMARY what used here,
and if you are trying to paste it indo Google Docs running inside Firefox it is CLIPBOARD
what is used here.

How could check it:

edit cht.sh and change every occurrence of xsel -i with xsel -bi.

After that it should work as you expect.

The main question of course still remains, what should be used by default PRIMARY or CLIPBOARD or both? We currently use PRIMARY as it is the main selection buffer in X Window.

@juliuswz,

  1. Please test, whether my conjecture is correct,
  2. Please share your thoughts about the PRIMARY/CLIPBOARD controversy.

from cheat.sh.

chubin avatar chubin commented on May 18, 2024

Please check whether it works with shift+insert or with a middle mouse click (both buttons).
Does it work for you?

from cheat.sh.

juliuswz avatar juliuswz commented on May 18, 2024

No it doesn't. I'm sorry, I was not specific. When I refer to "ctrl + v" I mean paste in general. Either in the terminal using shift + insert or with the middle mouse as you said or ctrl + v or in any other text editor. The point is, for some reason the copy is not working here, it is not going to clipboard.

from cheat.sh.

juliuswz avatar juliuswz commented on May 18, 2024

Yes, with xsel -bi is working as I expected. I should have looked like it was being proposed before I opened the issue, but anyway answering your question, I believe the clipboard would be useful when it was necessary for example to share with someone in some third party application, such as Slack.
Maybe a different command to do it. What do you think?

from cheat.sh.

chubin avatar chubin commented on May 18, 2024

@juliuswz Agree. I think we should use xsel -bi in the client. Will be fixed soon.

from cheat.sh.

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.