Stack Exchange Network

Stack Exchange network consists of 174 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

-1
votes
1answer
14 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
22 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
39 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
23 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
14 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
62 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
44 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
votes
0answers
21 views

how i can make a custom command for selective copy for certain file type?

I want to write a command that allows me to copy certain file type (ex:*.PDF or *.doc) from unknown destination in the Hdd and paste them to a destination i choose it. Also could i copy the "path" of ...
1
vote
1answer
133 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
135 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
19 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
63 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
26 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
56 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 ...
2
votes
2answers
444 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) ...
0
votes
0answers
42 views

vi adds a previously deleted line from another file when I open a file

I've been using vi (vim) for 30+ years, but in the last few months something inexplicable has been happening that causes serious problems. What seems to be happening is that I might delete a line in ...
0
votes
1answer
16 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
50 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
0answers
44 views

Bash, how to get system clipboard content type on Mac?

Is there any way to get the type of system clipboard content in bash script? Or check clipboard content type is IMAGE file or not. Like alfred know clipboard content type.
0
votes
0answers
19 views

Clipboard image data target types for both Gimp and Thunderbird

I have a PNG image file, and I want to script the process of clipboarding it such that it can be pasted into both Thunderbird and Gimp. It seems the normal method of putting it on the clipboard is ...
0
votes
1answer
450 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
53 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
14 views

Copying & Pasting Quickly a Large Number of Characters in `mcedit` Editor

I have to edit remote content using my preferred trio SSH, tmux and mc. I use mcedit and I like it, but… Pain 1: I understand I must prest F3 to mark and then again F3 to stop marking after ...
0
votes
0answers
67 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*...
2
votes
4answers
70 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
0answers
91 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
33 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 ...
0
votes
0answers
20 views

Chromium auto selecting address and middle click paste

Clicking once on the address bar in Chromium will select the entire address that’s currently written. But doing that, even though it’s selecting some text, doesn’t create a new entry in my clipboard. ...
1
vote
0answers
73 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
0answers
216 views

Xfce: Can't copy from Terminal

I can't copy text from my Xfce Terminal (0.4.7) into the clipboard nor directly into the command line. I've tried: Middle mouse button Ctrl+Shift+C Ctrl + Insert Right button and clicking copy (this ...
0
votes
1answer
48 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
41 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
38 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
506 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
95 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
67 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
48 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
199 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
65 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
336 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
358 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
826 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
647 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
209 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
1k 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
1k 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
181 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
208 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 ...