Comments (5)
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.
- Please test, whether my conjecture is correct,
- Please share your thoughts about the PRIMARY/CLIPBOARD controversy.
from cheat.sh.
Please check whether it works with shift+insert or with a middle mouse click (both buttons).
Does it work for you?
from cheat.sh.
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.
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.
@juliuswz Agree. I think we should use xsel -bi
in the client. Will be fixed soon.
from cheat.sh.
Related Issues (20)
- ❓️ What is the 0.3% part, written on **Go** here? HOT 1
- Server issues? HOT 2
- math import incorrect on golang cheat sheet HOT 7
- Incorrect French grammar in README image HOT 5
- Minor typo in cht.exe usage description HOT 2
- standalone mode failed HOT 4
- Why does standalone install require Python2? HOT 5
- Support for [C]ommand [L]ine [I]nterface [P]ages project HOT 2
- Crontab calculator
- OEIS adapter broken HOT 4
- 404 for some snippets, but next ones work
- Cheatsheet HOT 1
- 500 Internal Server Error when send request to https://cht.sh/:shell-x/ HOT 14
- 500 internal server error HOT 2
- When we ask to write javascript code, It just uses npm library in code, But does not mention it HOT 2
- Hehe
- https://github.com/makerdao/dss/blob/master/src/test/clip.t.sol#L20
- Error installing using pip on windows 10 HOT 2
- Manpage for cht.sh (command line client)
- Open in less if output is too long
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cheat.sh.