Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-02-12 22:51:24

tuxolero
Member
Registered: 2013-02-10
Posts: 60

Thunar: How can I copy the path while having selected files ?

Hi,

I am using Thunar with the "Location Selector" set to "Toolbar Style".
I often copy the path (or a part of it) from the "Location Selector" for pasting it into a script, email, forum post, ...
When no files are selected in the file pane, everything works like expected.
But when files are seleted, it always copies the URL(s) of the selected file(s), regardless of the focus.

By "focus", I mean:
When I select some text in the "Location Selector" after selecting files, it's the selected text I would expect to be copied.
When I select one or more file(s) after selecting text in the "Location Selector", I expect the file URL(s) to be copied.

In short: always the last thing that was selected should IMHO be copied.

Is there an option to configure it this way ?

Well, I already hear the people saying it's a feature.
But:
You can only call it a feature if the user has the option to turn it off. big_smile

Thanx and Regards,
Markus

Offline

#2 2014-02-13 01:26:41

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

Re: Thunar: How can I copy the path while having selected files ?

On my setup, if I click the middle mouse button (or click both the left and right at the same time), it pastes just the path.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2014-02-13 07:31:49

tuxolero
Member
Registered: 2013-02-10
Posts: 60

Re: Thunar: How can I copy the path while having selected files ?

You are talking about the X clipboard. This is OK for select and one-time paste.
But I'm talking about the XFCE clipboard (Ctrl-C). Only this one will be added to the clipboard list in Clipman.

Offline

#4 2014-02-13 19:53:39

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,115

Re: Thunar: How can I copy the path while having selected files ?

I'm not positive, but I think if you hover your mouse cursor over the highlighted item that you actually want to copy, that will be the one that gets copied when you right-click and select copy. Not sure if the same behavior holds true for the keyboard shortcut as well, though.

Regards,
MDM


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

#5 2014-02-14 00:24:17

tuxolero
Member
Registered: 2013-02-10
Posts: 60

Re: Thunar: How can I copy the path while having selected files ?

I have just tested it:

  • opened a text editor (leafpad)

  • opened thunar

  • selected a few files

  • selected a part of the path in the location bar

  • middle click into leafpad -> OK: the selected text was pasted

  • selected another part of the path

  • Ctrl-C (with the mouse pointer still hovering on the location bar)

  • Ctrl-V in leafpad -> NOT OK: The URLs of the selected files were pasted

If you have the clipman widget in the XFCE panel, you can check the XFCE clipboard content right after Ctrl-C.

Although I often use middle-click too, there are two use cases when I need the XFCE clipboard with Ctrl-C:

  • put the clipboard content into the Clipman history

  • pass the clipboard content to a VNC session

None of them works with the X11 clipboard (middle click).

Last edited by tuxolero (2014-02-14 00:26:00)

Offline

Board footer

Powered by FluxBB