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

2
votes
1answer
10 views

Pbcopy acts as Pbpaste when symlinked

To keep my configs sane between environments, I thought it's a great idea to do the following on MacOS. ln -s /usr/bin/pbcopy /usr/local/bin/xclip However, my xclip symlink does not act just as ...
0
votes
1answer
26 views

Short command or alias to copy last command to clipboard

Often I'd like the command I just typed to put into the clipboard, and I'd like to do it from the command line. I came up with: alias cl="fc -ln -1 | sed 's/^\s*//' | xsel -b" To alias cl to that ...
0
votes
1answer
42 views

Can I make characters uncopyable in a terminal emulator?

I run fish (in gnome-terminal) with a custom style that gives me information about the current Git repository: That's all very fine, but when I want to copy-paste some command with its output like so:...
0
votes
0answers
16 views

Copy between different vim instances in different tmux sessions (RHEL 7.6 Maipo)

I recently work a lot via ssh on a server where I do not have root access. Is it possible to set something up to copy between different vim instances in different tmux sessions without writing ...
3
votes
1answer
43 views

Using multiple copy buffers in Bash

Ctrlu cuts text from current location to the beginning of line. Now, I can paste this with Ctrly whenever I want until the next time I hit Ctrlu to copy another line in the buffer. Now the problem I ...
1
vote
2answers
45 views

Pasting multiple lines so that they consistently execute

Here's an example of a very simple code snippet that I'd like to paste to my terminal in a way that everything is executed. sudo apt update sudo apt upgrade sudo apt -y install build-essential sudo ...
0
votes
0answers
30 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
39 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
207 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
78 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
1answer
618 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
vote
1answer
201 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
63 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 ...
0
votes
1answer
292 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
45 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
47 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
26 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
35 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
318 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
81 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
609 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
635 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
28 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
189 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
69 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
109 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
2k 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
22 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
130 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
2k 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
89 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
115 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
187 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
250 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
38 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
25 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 ...
2
votes
0answers
123 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
66 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
67 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?
4
votes
0answers
45 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
899 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
154 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
72 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
52 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
337 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
43 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
81 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
429 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
608 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 ...