The tag has no usage guidance.

learn more… | top users | synonyms (1)

1
vote
1answer
29 views

copy&paste in zsh

I've build myself this little script for zsh, to copy & paste within zsh to the system clipboard (basically got everything from here: zsh copy and paste like emacs) x-yank() { zle ...
1
vote
1answer
9 views

zsh jump to the end of copy from X clipboard

I would like to get Ctrl + V and Ctrl + X to paste / copy from zsh to X11. I found the following snippet to work but zsh does not jump to the character after paste. How could I do that. ...
1
vote
0answers
13 views

Can I copy output from sage to my clipboard?

I run sage from the terminal. One nice feature of sage is that it can automatically latex-ify results. I would like to be able to pipe these results to my clipboard (I run Ubuntu 14.04). I have ...
0
votes
1answer
31 views

Where is the clipboard file located? [closed]

Where in the file system is the file containing the content of the clipboard? If there is no file, then how is the clipboard maintained?
0
votes
2answers
32 views

How can I copy the output of a command in the terminal to my clipboard? [duplicate]

I have a script that operates on enormous files and outputs an enormous amount of content (almost 7000 lines). I need to copy the output of this to my clipboard so I can then paste it into paste2.org ...
1
vote
2answers
49 views

Who stores copy/paste buffers in X11?

When a piece of text is highlighted with the mouse, it can be pasted by middle-clicking on the place you want, or by using the always classic Shift+Insert key combo. But, when the area where that ...
1
vote
1answer
25 views

Copy file to clipboard as text/html

I would like to copy the contents of a file to the X11 CLIPBOARD target text/html using the command line. Ideally, this would be as portable as possible across different flavors of Linux and possibly ...
1
vote
0answers
22 views

Copy text in byobu when the mouse is “off”

I recently started using byobu with tmux as a backend. I have learned that AltF12 toggles "mouse mode" off and on. When "mouse mode" is on, I can select text with my mouse and paste it with the middle ...
1
vote
0answers
30 views

Vim losing ability to copy to client clipoard over SSH

I have setup vim to be able to yank text from the server instance of vim to the clipboard on My client's operating system (through the SSH connection). The basic setup is Client side ...
1
vote
0answers
39 views

Clipboard doesn't work between Win7 (local) and Debian (remote)

I'm using Win7 64-bit and connecting remotely to Debian. The thing is copy/paste doesn't work even for plain text. I've tried killing this process rdpclip.exe and create again, but that didn't help. ...
1
vote
1answer
32 views

How to change/remove paste on middle click? [duplicate]

Question: How to remove the "paste" feature of the middle button? I am not asking to remove the middle button from the device (as many pages show as a solution) because I use this middle button for ...
2
votes
4answers
226 views

Interactively add arguments line-by-line in bash

Sometimes it happens that I have a list of files or strings in the clipboard and want to paste it as an argument list in a bash shell: Example file list (only an example): createsnapshot.sh ...
1
vote
0answers
29 views

How to use Ctrl+mouse click in tmux?

Due to the change in Tmux2.1, I need to remap my mouse's middle click to tmux's paste: bind -T root MouseDown2Pane run -b "tmux paste-buffer" However, I also would like to enable using Ctrl (or ...
22
votes
4answers
2k views

What causes a copy/paste in terminal to sometimes execute the command?

When you paste some command in terminal, it will sometimes automatically execute the command (just like if the "Enter" key was pressed), sometimes not. I've been using Linux for ages, pasted ...
2
votes
1answer
91 views

Klipper: how to paste current clipboard contents as plain text with a single shortcut action?

I want to be able to copy rich text with CTRL-C, then paste it as plain text with a short cut key (such as CTRL-SHIFT-V or whatever). I'm running KDE and I use Klipper. It seems like there should be ...
4
votes
0answers
96 views

Disabling PRIMARY or cut buffer “copy on select”

I've been fairly happily using Ctrl-C/Ctrl-V, with the occasional Ctrl-Ins/Shift-Ins here and there on Linux for quite some time, but I've recently switched over to urxvt and am finding the clipboard ...
1
vote
0answers
42 views

paste clipboard text plus string with .inputrc

I've got in my .inputrc something like "\C-v": "script.sh " I use a link from my clipboard as a parameter for the script, so I type ctrl-v and then paste the link, and then hit enter. So I've seen ...
3
votes
2answers
45 views

Making an Extra Copy and Paste Script

How can I make a script which duplicates Ctrl + C and Ctrl + V (aside from the actual keybinding part, which I know already I can use xbindkeys for)? So, for example, how could I make bash functions ...
2
votes
0answers
46 views

xfce4-screenshooter creates something invalid in clipboard when taking screenshot

I installed xfce4-screenshooter-plugin on my xfce VirtualBox Debian 8 and. with use of xfce4-screenshooter --help I bound PrScr and Ctrl + PrScr to capture full screen and active window screenshots ...
2
votes
0answers
40 views

RedHat5 stop copy on select

At work do we use RHEL5, with Gnome 2.28.2, we are also required to do development work in RHEL5. RHEL5 have this strange feature that it will replace the clipboard with anything i highlight. This is ...
3
votes
5answers
175 views

Why is Terminal automatically entering my command after pasting text?

This happens whether I use ctrl+shift+v or paste from the right-click menu. How do I make this behavior stop?
3
votes
1answer
53 views

Copy a large (over 4k) selection of text from the screen scrollback buffer into the system clipboard

I wan't to be able to copy-paste the contents of my screen scrollback buffer into various browser text fields, usually when pasting an excerpt from a log file. One way that works well is the ...
2
votes
1answer
73 views

tmux/zsh messes up pasted text

When I paste text into a tmux shell running zsh by select it with a mouse and then hitting 3rd mouse button, it prefixes the text with "200~" and adds a "~" at the end. For example, if I have the ...
2
votes
3answers
528 views

How can I copy text from xterm (Awesome, Debian, VirtualBox)?

I ran the minimal Debian installation inside a VirtualBox instance, installed X11 and Awesome window manager manually (without any custom configuration yet) and installed VirtualBox additions as well ...
2
votes
0answers
89 views

Paste clipboard content without X

I'm sshing into ArchLinux machine from Ubuntu. I want to be able to copy some text from Ubuntu and paste it into a file in Archlinux from terminal. xclip doesn't work for me, because I'm unable to set ...
2
votes
0answers
39 views

System clipboard is flushed out, once I exit vim

I use yy to access the system clipboard always. yy is mapped to a function as, function! Copy_ToSystemClip() .w !xsel -ob end function inoremap yy Copy_ToSystemClip()<CR> It copies to the ...
0
votes
1answer
44 views

Ctrl-y, yanking x-clipboard contents to terminal adds shell prompt string

Using this link, i wrote custom function to yank text from x-clipboard to shell terminal on pressing C-y. I see two issues here, copy_line_from_x_clipboard () { xsel -o } bind -x '"\C-y": ...
0
votes
0answers
35 views

Ctrl + y on shell terminal, paste from system clipboard [duplicate]

I use emacs style bindings for my bash terminal. And i use only the system clipboard and never use any of the application specific/primary selection stuff. When i copy text from emacs window and use ...
0
votes
1answer
40 views

Clear X clipboard using cron [duplicate]

Is there any way I can clear the X clipboard from a cron job? The usual commands for xclip don't seem to work. echo -n | xclip -selection clipboard doesn't work from cron.
1
vote
1answer
58 views

Remove formatting from copy/paste buffer

Whenever I copy any text via X11's copy/paste feature, I would like all formatting to be removed. I waste time daily dumping the text into a terminal, then copying again. Is this possible?
2
votes
3answers
310 views

Trailing spaces when copying from console

It's this annoying behavior I've been experiencing here and there occasionally: when you select text with mouse in console (that is, copy it), paste it, and realize you've got extra spaces at the end ...
3
votes
0answers
57 views

Patching X11 to remove SELECTION clipboard

How would I patch the X11 source to disable or remove the SELECTION clipboard?
0
votes
0answers
17 views

Disabling text entry box autoselect?

I've got a bunch of GUI applications which try to be 'helpful' by automatically selecting text in a text box when the text box gets focus. (The main culprit being my web browser.) This is not ...
2
votes
1answer
349 views

Copy current line to clipboard under cursor without mouse selection

How can i copy the current line under cursor in vi to the system clipboard? I may paste the contents anywhere, in vi itself, or in shell, or in libreoffice app... And i am looking for simpler ...
2
votes
1answer
80 views

How to toggle or turn off text selection being sent to the clipboard

I would like to disable the default behavior that seems to happen with every Linux distribution that I've ever tried that any selected text is immediately sent to the clipboard (Mint, Ubuntu, Fedora, ...
1
vote
1answer
133 views

Ctrl-Y, emacs styled yank text is not working when user is switched

I cut the bash command line text using Ctrl+K. The line was cut as expected. Next, I ran sudo su to become the root user. I tried to paste the command that I cut as the non-sudo user using Ctrl+Y. ...
4
votes
2answers
1k views

Copying & Pasting with URxvt

I'm using URxvt 9.20 on debian jessie and I'm looking for a way to copy & paste text like I was used to with the gnome-terminal (Ctrl+Insert for copying, Shift+Insert for pasting). It works ...
9
votes
1answer
100 views

Is it possible to know the source (application) of the clipboard?

I've noticed that sometimes clipboard contents become unavailable if the source application (where the content was copied from) is closed. This leads me to wonder if it's possible to know what the ...
3
votes
2answers
772 views

How do I select text from terminal by using keyboard only?

I used to select text via mouse click+drag but I want to know if I can do the same thing via the keyboard only? I am talking about selecting text with the help of the keyboard on gnome-terminal, etc. ...
3
votes
2answers
220 views

How to copy file contents to the local clipboard from a file in a remote machine over ssh

To solve this problem I always have to use scp or rsync to copy the file into my local computer to open the file and simply copy the contents of the text file into my local clipboard. I was just ...
0
votes
0answers
11 views

Synchronize strings copied on vim with the xserver clipboard [duplicate]

How to copy a string in vim under terminal and get it available in the main clipboard? Seems that by default, is not possible to copy from vim to my browser, for example
0
votes
2answers
84 views

How (and whether) to copy and paste on an ssh web interface?

A web page provides web-based ssh access to a linux machine. I'm using it one a Windows7 machine. While editing a file in vi, I want to repeadetly enter the following: j0nhd0 This (1) goes to the ...
2
votes
2answers
87 views

(X) copy/paste buffer overwritten by Firefox autocomplete/autosuggestion

Firefox replaces the X selection with partial URL when it auto completes an URL typed in the Location Bar. How can this be prevented? If I select some text with the mouse, I can then paste it ...
2
votes
3answers
524 views

Pasting some text with tabs into a here-document in a PuTTY window

I have a string with tab delimited data that looks like: h1 h2 a1 b1 a2 b2 I produced it with Notepad on Windows. I created tab delimited data, ensuring that tabs and not spaces are used. I ...
0
votes
0answers
60 views

I cannot remove two programs from Gnome tray

I started two programs: Glipper 2.4 and ClipIt 1.4.2 in my Gnome 3.12.0 desktop on Debian Linux 8. They are in Gnome tray. Now I click ClipIt menu and choose "Quit". I also kill Python process ...
0
votes
1answer
902 views

Cannot copy-paste from or to the gnome-terminal

I am using Arch linux. However after the recent gnome update, I am not able to copy or paste anything into or from gnome terminal to gui applications like editors or browsers. However I am able to ...
6
votes
1answer
318 views

prevent multi-line paste in bash

I often use ctrl+c to copy text from some gui application and then paste it into my terminal emulator (terminator), using right-mouse-click-menu and paste. Sometimes I forget that the clipboard ...
43
votes
3answers
5k views

Why does Vim indent pasted code incorrectly?

In Vim, if I paste this script: #!/bin/sh VAR=1 while ((VAR < 10)) do echo "VAR1 is now $VAR" ((VAR = VAR +2)) done echo "finish" I get these strange results: ...
0
votes
1answer
481 views

Copy& Paste Fedora and Virtualbox CentOS7

I want copy text from Fedora 21 and paste to Virtual box with CentOS 7 how can I do that?? I change in Virtual box settings Shared Clipboard and Drag'n'Drop to bidirectional Thanks for help, ...
0
votes
1answer
349 views

How do I configure a Trackpoint, so middle-click scrolling is not misinterpreted as a middle-click paste?

I'm using a Thinkpad USB Trackpoint keyboard, and when I try to scroll, using middle-click and the trackpoint, sometimes it performs a middle-click paste. I don't recall this ever happening with the ...