Tag Info

New answers tagged

2

Select the text to copy and then use the middle mouse button in the other window to paste the selected text. Even if no longer selected you can paste last selected string.


0

You might want to try tmux-yank plugin. It enables copying straight to system clipboard (OS X and Linux) and some other goodies like yanking the current shell line.


3

You could do something like: while xclip -o -sel c && echo; do xclip -i -quiet -sel c <> /dev/null >&0 2>&0 done > file xclip -o -sel c dumps the content of the CLIPBOARD selection. xclip -i -quiet -sel c claims ownership of the CLIPBOARD selection (and makes it empty) until something else claims it again. If you have a ...


0

I can suggest the following script. #!/bin/sh mk_google_query() { url_encode() { # http://stackoverflow.com/a/298258/3541063 perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$1" } echo "http://google.com/search?q=`url_encode "$1"`" } SEARCH_TEXT=`xsel` xdg-open `mk_google_query "$SEARCH_TEXT"` This script uses xsel to ...


2

The solution happen to be very easy and straight forward. It will help you to open a browser, paste text from your clipboard to Google Search - all with one little script, that can be and must be attached to a keyboard shortcut. What we need, is a small utility called xsel and few lines in BASH script. Example: #!/bin/bash CLIPBOARD=$(/usr/bin/xsel ...



Top 50 recent answers are included