Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [clipboard]

A clipboard is a temporary storage, mostly related to text, from where contents can be pasted to a new/other location. Use this tag for questions that specifically involve problems with putting material in, or getting material out of the clipboard

0
votes
0answers
27 views

Why does gVim “takes over” my clipboard when using GNOME Terminal?

In a VM window on my Win10 machine, running RedHat Enterprise 6.6 / GNOME 2.28.2, I have a GNOME Terminal and gVim windows open. When selecting text in the Terminal with the mouse, and then using "...
1
vote
0answers
15 views

Could not use GPaste Keyboard shortcuts [closed]

I am using Ubuntu 16.04. I could not use any Keyboard shortcuts provided by GPaste(clipboard management system). I'm not sure what's wrong with it. Is anyone facing the same issue? Attaching ...
0
votes
0answers
45 views

GNOME Terminal 2 mouse copy/paste not working

Marking text with mouse left-button in a GNOME Terminal 2 window does not place it into the clipboard, so it can be pasted with mouse middle-button. When pasting I instead get text I have copied to ...
0
votes
2answers
45 views

How to get file path which was selected and make copy in dolphin KDE and paste on zsh?

➜ ~ cat .zshrc | grep xclip alias c="xclip -selection c" alias -g v='"$(xclip -selection c -o)"' ➜ ~ v zsh: 没有那个文件或目录: file:///home/roach/Downloads/pure.png ➜ ~ The Chinese words "没有那个文件或目录" ...
2
votes
0answers
213 views

QEMU/KVM Windows 10 Guest won't copy/paste text or files back to host

I am running Debian 9 (Stretch) with QEMU/KVM hosting a Windows 10 - 1809 guest. Using Spice for graphics. I installed SPICE Guest Tools 0.141 and am able to copy/paste files and text from my Debian ...
-1
votes
1answer
61 views

How do I copy and paste with Kitty?

Kitty is a terminal for Linux. How do I copy and paste with it. CTRL+c does not work? And there is no option on right click. Right-click also doesn't work for copy.
0
votes
2answers
52 views

How to grab x characters long of start text from xclip selection and append to filename?

So I am trying to figure out how to add a title after the timestamp in my xclip script here. I would like it to grab about 24 characters worth of text from the beginning of each selection and save it ...
-1
votes
1answer
71 views

How to copy/paste text using the mouse from one tmux instance in one terminal emulator to another tmux instance in a different terminal emulator?

How can I copy some text using the mouse, between two terminal emulator instances, each running its own instance of tmux? I've read this: How to copy and paste with a mouse with tmux And various ...
1
vote
1answer
34 views

How to get clipboard as input file name to Vim on bash?

I install xclip to access system clipboard, my setting and some operations as below: ➜ ~ cat .zshrc | grep xclip alias c="xclip -selection c" alias v="xclip -selection c -o" ➜ ~ which dict | c ➜ ~ ...
2
votes
0answers
43 views

Vim editor universal config for copy/paste on multiplatform environment does it exists? [closed]

I spend a lot of time to get comfortable working with Vim, and I am there right now, except one thing. Also it look like Vim has advantages in many cases working on embedded programming or kernel ...
1
vote
0answers
24 views

Can I refer to current clipboard content as a file?

I'd like to select-and-copy some text to clipboard and then to send it via Bluetooth to my phone. But this requires to open a file to send. Well, I know about programs like xsel or xclip, but here it ...
0
votes
1answer
25 views

Konsole does not participate in either clipboards for one user

We use Debian 9 with the Xfce desktop at work. One user uses both xfce4-terminal and konsole. For some reason he cannot copy text from Konsole using neither mouse selection and middle click nor the ...
1
vote
1answer
199 views

Ubuntu 18 Tmux 2.6-3 copy paste functionality with xclip non functional

I recently did a fresh Ubuntu 18 install and copied over my home directory from my previous Ubuntu 16 setup. However this seems to have broken the copy paste functionality I had previously with xclip (...
0
votes
1answer
69 views

How to use clipboard data in bash script? [duplicate]

I very often use a simple curl command to get IP addresses details. curl ipinfo.io/111.222.333.444 Almost everytime I got the IP address in the clipboard Is there a way to use a bash variable to ...
1
vote
1answer
364 views

Cut/Paste stopped working for me

I am using Debian Sid/unstable. After a rather large set of installation (changing desktop from cinnamon to gnome) I got a completely non-functional clipboard. I literally cannot copy/paste in any ...
0
votes
1answer
473 views

Can't Paste any Texts [duplicate]

I just download some Desktop Environment for my Kali Linux. Then at second usage (after reboot), I tried to copy MAC Address in terminal. But when I click Paste, the text can't even show in my screen. ...
1
vote
0answers
23 views

xclip copy file so it can be pasted as a file (not file content) [duplicate]

How can I copy a file with xclip, so that it is pastable as a file in file explorers? I searched on google an so on and found stuff like this Copy file to xclip and paste to Firefox, but there it is ...
1
vote
1answer
148 views

xst terminal: normal clipboard disabled when in tmux

When use xst not in tmux, clipboard somehow share the same with the system/os/or-whatever-idk, but I can copy from firefox/chrome and paste into xst. But with tmux I can't do that, tmux only allow ...
0
votes
0answers
54 views

How to paste a timestamp (YYYYMMDDHHMMSS) immediately anywhere using hotkey, without reserving the clipboard?

I would like to paste an YYYYMMDDHHMMSS timestamp everywhere with a specified keyboard key or combination. Here is a way to do so: http://www.arcadien.net/node/48 But this reserves the clipboard, ...
2
votes
1answer
91 views

Unable to copy from VIM to clipboard using "+y command

I am unable to copy strings from vim paste them somewhere else, for example in the terminal, using "+y. I run Ubuntu on my laptop, the vim version is vim-gtk, it has xterm_clipboard and clipboard ...
3
votes
2answers
1k views

tmux: Select and copy pane text with mouse

My Problem When I select text from tmux using the mouse, the block selection spans to neighbouring panes. What Have I Tried set -g mouse on Hitting option while selecting (Mac's equivalent for alt) ...
1
vote
1answer
19 views

Access primary register with keyboard

I’ve read this answer on superuser.com by grawity and part of the text “X Selections, Cut Buffers, and Kill Rings.” by Jamie Zawinski. I understand there’s the primary register: use the mouse to ...
0
votes
1answer
97 views

Tmux binding error `returned 127` in cygwin

I want to use a clipboard manager in tmux. It is the CopyQ, but it does not matter, I guess. In ~/.tmux.conf I set following binding: set-window-option -g mode-keys vi bind C-y run 'out=`tmux save-...
0
votes
1answer
1k views

st terminal: copy on select and right mouse click to paste

https://st.suckless.org/patches/clipboard/ makes mousewheel to select and paste but I need copy on select of left mouse and then right mouse click to paste. and to extend, ctrl-v to paste. I use ...
0
votes
1answer
69 views

Calling clipit from inside a shell script

I am trying to launch clipit from inside a script using i3wm and polybar. I expect it to relaunch polybar and start all the programs I wanted if they're not already running when I reload i3, but ...
0
votes
0answers
91 views

xterm: how to copy text with Ctrl+C under FreeBSD?

I've got this XTerm file: XTerm*Background: black XTerm*Foreground: white XTerm*SaveLines: 2000 XTerm*faceName: "Font Awesome 5 Brands-Regular-400" XTerm*faceSize: 8 XTerm*rightScrollBar: true XTerm*...
3
votes
4answers
121 views

How to drop/paste files into a folder using the 'Files' application (Nautilus)?

Whenever I have files cut or copied to the clipboard and want to paste them inside a folder using the mouse in the 'Files' application (default file browser in Ubuntu) I have to first change from list ...
0
votes
1answer
176 views

Xfce screenshooter and clipboard manager

I moved from Xfce4 to i3 recently but I still use xfce4-screenshooter. It works properly and I had no problems with it except that I can't save to clipboard. On this page it is written: Copy to ...
0
votes
1answer
34 views

Auto copy and paste utility for Mac and Vim

I would like to make a lot of copy- paste- text from my browser into vim. I'd like to streamline this process. I'm thinking of a utility that can do the following tasks: When a text is highlighted, ...
0
votes
1answer
24 views

Retrieve the manual format clipboard

I'd like to retrieve the manual to the clipboard, usually implement the following steps: # man crontab # man crontab > draft.md # cat draft.md then copy it manually from the console, How could I ...
1
vote
0answers
98 views

How can I paste a gif from the clipboard with xclip?

I'm trying to copy a gif into my clipboard such that I would be able to paste it into web applications (slack, github, etc.). I have tried the following without any luck: xclip -selection clipboard -...
0
votes
1answer
58 views

Preserve contents of clipboard when a programs from text from copied exits

In GNOME 3 when I copy some text to clipboard from an application and then exit from that application, the clipboard doesn't hold the copied text (the clipboard is empty). My question is as follows: ...
0
votes
1answer
59 views

How can I disable the history in `xclipboard`?

If I run xclipboard to keep a persistent CLIPBOARD, there is automatically a history created of all the content which was in the CLIPBOARD at some time. How can I disable the history?
3
votes
0answers
39 views

Pasting into terminal including comments issue

This is somehow a follow-up to my last question: Pasting multiple commands into terminal stops at user input Pasting the following to the terminal works as expected: ( echo test1 # some comment echo ...
2
votes
4answers
732 views

Pasting multiple commands into terminal stops at user input

Pasting some consecutive commands into terminal stops on commands with user input, e.g.: read VAR echo $VAR or select VAR in 1 2 3; do break; done echo $VAR echo $VAR is not getting pasted/...
1
vote
0answers
130 views

KDE 5.8.9 odd copy/paste behaviour

I am using Linux Mint 18.3 KDE Edition with KDE Plasma 5.8.9. As a file manager, I use the default "File" application but the issue I have may also be found with Thunar or Dolphin. If I use the copy ...
1
vote
1answer
69 views

Where is my pasted input going?

I am copying and pasting sequences of shell commands into my terminal emulator, and I am confused by the behaviour. When I paste the single line ssh user@remote "echo foo"; echo baz the computer does ...
1
vote
2answers
49 views

How can I copy a file and paste it as a different name?

I have a file test.txt in directory A/B. I want to copy test.txt to A/C and rename it newtest.txt. I know I can use the cp and mv commands to do this, but the issue is that there already is a test....
1
vote
1answer
272 views

How to keep `CLIPBOARD` content from XTerm after closing it? (Like Firefox or Leafpad does for example.)

I wanted to use CTRLSHIFTC and CTRLSHIFTV for Copy-and-Paste within XTerm and other applications, so I added XTerm*vt100.translations: #override \ Shift Ctrl <Key> C: copy-selection(...
0
votes
0answers
42 views

Vim pasting causes copy into clipboard?

So this is strange. If I have the following: function noTypo(){return;} fucntion doSomething(){return;} fucntion doSomethingElse(){return;} And I highlight and yank function in function noTypo(), ...
0
votes
1answer
74 views

Unable to copy or delete or rename files in Debian

I use the latest version of Debian (9.4). Recently I realized that I'm unable to copy and paste (or cut and paste), rename or delete any file on my laptop at all. I can't even download any file it ...
0
votes
1answer
386 views

Copy Image to Clipboard from Bash

Suppose I have an image on the desktop, $ ls 1.png I'd like to copy it to the clipboard,and tried $ pbcopy 1.png ^C I should terminate the process manually. How to copy image to clipboard, so ...
2
votes
3answers
504 views

Bash commands get truncated when pasting multiple commands to terminal

I copy/pasted the following 100 lines into my terminal (xterm) to execute those on a server I am connected to over ssh: mv /long/path/to/file1 /longer/path/to/file1 mv /long/path/to/file2 /longer/...
0
votes
1answer
1k views

VNC seems to break CLIPBOARD and PRIMARY

I'm using VNC Viewer 5.3.2 (r19179) x64 on a Windows 10 machine to connect to a VNC Server (Virtual Mode) 5.3.2 (r19476) x64 running on SUSE Linux Enterprise Server 11. My issue is concerning copy and ...
5
votes
1answer
735 views

How to make a file with content from the clipboard without opening the file?

Copy the contents of a file into the clipboard without displaying its contents In the above post they provide a solution (xsel -b <file) to copy content from file to clipboard without opening file....
0
votes
2answers
307 views

copying to clipboad from VIM editor doesn't work on CentOS 6?

I'm on CentOS 6 (Gnome Desktop Env) and I'm trying to copy a URL from a .txt file by opening it with the vim editor and pasting that text into the terminal/command-line because I need it for a command....
1
vote
2answers
2k views

Is there any way to copy file's content in clipboard without opening the file? [duplicate]

Always, I am using vim as my text editor. But, when I want to copy full file's content in clipboard to paste another place I open the file in gedit and press CtrlA and then CtrlC. Opening the file in ...
0
votes
2answers
2k views

Any function copying from clipboard to a variable in Bash? [duplicate]

I need a way to get/copy data from clipboard to a variable in Bash. Is there such one?
0
votes
1answer
241 views

Copy a line of text from nano running in a shell over ssh in order to paste into a local gedit instance

I routinely access remote files using nano in a terminal shell over ssh. Sometimes I'd like to copy a large amount of text (sometimes one line sometimes a large block) and paste it into a local ...
0
votes
1answer
256 views

What is set-mark in bash and how should I expect it to behave?

It's just mentioned a shortcut for and its usage is supposed to be obvious, but it isn't obvious to me. How do I even tell I "marked" something? Why would I mark something? Does this thing have a ...