3

I often copy fully qualified filenames from Nautilus...

However I get a different paste result when I paste it into a Terminal vs. when I paste it into a "normal" text field (eg. a text editor, or web page).

I do know that the clipboard can contain any number of "paste formats"... from Standard-locale text format, to specialized Word-processor rich-text format, to a full URI format of a file-object, etc...

So there is nothing "wrong" here;
I just want a workaround to allow me to copy a filename from Nautilis, and paste a "normal" text format into the Terminal...

Assuming this file /home/fred/a c
Here is a copy/paste example ...(copy it in Nautilus, using <Ctrl>C )

# paste into "normal" text field using <Ctrl>V
/home/fred/a c

# paste into Terminal using <Ctrl><Shift>V
file:///home/fred/a%20c 
                       # with a trailing space!  

Is there some way I can copy only a simple text format into the clipboad in Nautilus...
...or is there a way to paste the simple text format into Terminal, rather than the URI format?

Peter.O
  • 25,251

1 Answers1

3

I found two workarounds for this:

  1. right click in your terminal and select "paste filename"
    this will result in '/home/fred/a c', there seems to be no shortcut for this.
  2. alternatively you could press ctrl+l in nautilus, this will show you the folderpath. After copy and pasting this in your terminal you can use tab completion to get the filename.
david
  • 2,470