Tag Info

New answers tagged

2

OK, I've actually written some code that does what I need. Good thing it's pretty easy in Qt. Building info is at the bottom of this post. xclipshow.cpp: #include <QApplication> #include <QTimer> #include <QClipboard> #include <QMimeData> #include <QDebug> #include <QStringList> class App: public QObject { Q_OBJECT ...


0

Press Ctrl+C to copy. When you paste into a terminal, what you'll get is the file name (with its full path). You get the raw file name, which won't be directly usable in a shell command if it contains spaces or other special characters. To use the file name in a command, don't use a paste command from the terminal, let the shell do the pasting. Install the ...


1

Click on it, press Ctrl+C and just paste it. If you use xclip -selection c w for pasting instead of Ctrl+Shift+V you won't get any file:// prefix or URL encoding. I recommend wrapping that into something more convenient to use and using it for manipulating the clipboard when you're in the terminal. Here's an article that discusses this method using the ...


3

This is non-standard terminology, and the distinctions apply specifically when running Emacs under X11. “Emacs copy/paste” are the Emacs commands that access the kill ring. They are Emacs commands; depending on how Emacs is configured, they may only affect Emacs internally, or they may also interact with the X11 selections. “X copy/paste” are operations on ...


1

Using xclip, as @Nicolas suggested, if you want to later paste the contents of the clipboard, such as using Ctrl+V, you can use it this way: $ echo "Some Text" | xclip -selection clipboard



Top 50 recent answers are included