Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > uk.comp.os.linux > #20291

Re: Paste buffer

From Jim Price <d1version@hotmail.com>
Newsgroups uk.comp.os.linux
Subject Re: Paste buffer
Date 2016-10-12 21:39 +0100
Organization A noiseless patient Spider
Message-ID <ntm70o$k04$1@dont-email.me> (permalink)
References <e67kj7FsbuuU1@mid.individual.net>

Show all headers | View raw


On 12/10/16 21:26, Huge wrote:
> Can anyone think of an easier way to get a filename into the paste buffer
> than to right click it in a file chooser, select 'Rename', then CTRL-C?
>
> (Mint 17/MATE is it makes any difference.)

MATE uses the Caja file mangler by default, and that is based on the 
Nautilus from Gnome2. That allowed you to add scripts to the right click 
menu by placing them in the appropriate folder. If this functionality 
has made it through the transformation to Mint MATE, you would be able 
to use a script like this along with xclip to get the full filename 
(including path) into the clipboard:

<start of file>
#! /bin/bash

# Uses xclip which is not installed by default

URL="$PWD/$@"
echo "$URL" | xclip -i -selection "clipboard"
<eof>

If you don't want the full pathname, just the filename, remove $PWD/ 
from the URL= line.

On the Caja I have here the location for the script files is:
~/.config/caja/scripts

I have a load of other small scripts to do assorted other things from 
the right click scripts menu in Caja.

-- 
    ╔═╦═╦═════╦═══╗
    ║ ║ ║     ║   ║
  ╔═╝ ║ ║ ║ ║ ║ ╔═╝
  ╚═══╩═╩═╩═╩═╩═╝  -- JimP.

Back to uk.comp.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Paste buffer Huge <Huge@nowhere.much.invalid> - 2016-10-12 20:26 +0000
  Re: Paste buffer Jim Price <d1version@hotmail.com> - 2016-10-12 21:39 +0100
    Re: Paste buffer Huge <Huge@nowhere.much.invalid> - 2016-10-12 20:47 +0000

csiph-web