Right click, send to my documents

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
terrybull
Posts: 26
Joined: Thu Apr 10, 2014 11:55 am

Right click, send to my documents

#1 Post by terrybull »

If I insert a memory stick it opens Thunar with the files on there listed. It would be useful if I could right click on a particular file and have the option to ‘send to my documents’ but this is not available. How can I add this option when right clicking.
I’m running the latest Mx with xfce.
Thanks

User avatar
Eadwine Rose
Administrator
Posts: 15164
Joined: Wed Jul 12, 2006 2:10 am

Re: Right click, send to my documents

#2 Post by Eadwine Rose »

Tip nor trick shared, moved to help.
MX-23.6_x64 July 31 2023 * 6.1.0-38amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
fehlix
Developer
Posts: 12879
Joined: Wed Apr 11, 2018 5:09 pm

Re: Right click, send to my documents

#3 Post by fehlix »

terrybull wrote: Sat Oct 14, 2023 4:05 pm If I insert a memory stick it opens Thunar with the files on there listed. It would be useful if I could right click on a particular file and have the option to ‘send to my documents’ but this is not available. How can I add this option when right clicking.
I’m running the latest Mx with xfce.
Thanks
Add a new command to Thunar's "Custom Actions" (Edit->Configure custom actions)
Add command:
Name: Send to Documents
Command:

Code: Select all

sh -c 'gio copy "$@" "$(xdg-user-dir DOCUMENTS)" ' - %F
Note the quoting and the dash/hyphen before the %F
Appearance Conditions:
File Pattern: *
Range: *
Appears if selection contains:
tick all Files but not "Directories"
Save with OK.
Done and Test -> [Solved]

terrybull
Posts: 26
Joined: Thu Apr 10, 2014 11:55 am

Re: Right click, send to my documents

#4 Post by terrybull »

Thank you Felix. I’ll implement this later.

terrybull
Posts: 26
Joined: Thu Apr 10, 2014 11:55 am

Re: Right click, send to my documents

#5 Post by terrybull »

I have followed the directions exactly, copy and paste the command but I don’t get the ‘send to my documents’ when I right click a file in Thunar. Please advise.
Just to note I am trying this on a 32bit installation.

User avatar
fehlix
Developer
Posts: 12879
Joined: Wed Apr 11, 2018 5:09 pm

Re: Right click, send to my documents

#6 Post by fehlix »

terrybull wrote: Tue Oct 24, 2023 7:45 am I have followed the directions exactly, copy and paste the command but I don’t get the ‘send to my documents’ when I right click a file in Thunar. Please advise.
Just to note I am trying this on a 32bit installation.
Don't work kind of statements doesn't help much to find the reason, why it's not working.
So better do this:
Capture the steps you have done making an image/picture of the edit-custom-actions window so we can see what you have done. Maybe also copy/paste the command you have enter there, just in case.

terrybull
Posts: 26
Joined: Thu Apr 10, 2014 11:55 am

Re: Right click, send to my documents

#7 Post by terrybull »

Thanks Felix

https://i.postimg.cc/3rqYTp61/IMG-8008.jpg

https://i.postimg.cc/fLLQ4Tf1/IMG-8009.jpg

https://i.postimg.cc/mZPhCbWd/IMG-8010.jpg

Command I used
sh -c 'gio copy "$@" "$(xdg-user-dir DOCUMENTS)" ' - %F

User avatar
fehlix
Developer
Posts: 12879
Joined: Wed Apr 11, 2018 5:09 pm

Re: Right click, send to my documents

#8 Post by fehlix »

terrybull wrote: Tue Oct 24, 2023 11:45 am https://i.postimg.cc/3rqYTp61/IMG-8008.jpg

https://i.postimg.cc/fLLQ4Tf1/IMG-8009.jpg

https://i.postimg.cc/mZPhCbWd/IMG-8010.jpg

Command I used
sh -c 'gio copy "$@" "$(xdg-user-dir DOCUMENTS)" ' - %F
The command looks right as posted above

Code: Select all

sh -c 'gio copy "$@" "$(xdg-user-dir DOCUMENTS)" ' - %F
. Also you might not know, window-size can be adjusted to display the whole command,
b/c the picture just shows a fraction of the command line.
And read again: what was said about appearance. Except Directory select all other.
The Right click menu entry is located at the very last item, but can be moved up in Custom action window.
You may adjust the name or select an Icon to find it easier.

terrybull
Posts: 26
Joined: Thu Apr 10, 2014 11:55 am

Re: Right click, send to my documents

#9 Post by terrybull »

I'm still trying to sort this out. I'm not seeing where I enter 'right click' as the action. You say the right click menu entry is the very last item in the custom action window but I don't see it. I find where I can press a key to 'launch' the action but not right click.

User avatar
fehlix
Developer
Posts: 12879
Joined: Wed Apr 11, 2018 5:09 pm

Re: Right click, send to my documents

#10 Post by fehlix »

terrybull wrote: Fri Nov 03, 2023 6:08 pm I'm still trying to sort this out. I'm not seeing where I enter 'right click' as the action. You say the right click menu entry is the very last item in the custom action window but I don't see it. I find where I can press a key to 'launch' the action but not right click.
On the one picture you posted you see the "Send to Documents" entry very further down between "Create symlink" and "Create Archive" on the right-click menu. To get this "Send to Documents" entry further up shown, you would go to "Edit customs actions" and move the entry using the arrow up/down buttons.

Post Reply

Return to “MX Help”