Multi-Copy/Paste v3.0

Miscellaneous tools
Message
Author
User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#16 Post by SFR »

disciple wrote:
I'm starting to see the value of such option!
I think you were right before when you said it was more appropriate as a separate app. It's a completely different use case, only really useful for developers.
Yup, I'm still there; I meant 'option' in general, as an app.
...I failed again while Thought > Word (apparently I'm still in beta stage :oops:).

8)
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#17 Post by disciple »

Users should also be aware of the drag and drop capability of Rox's copy and rename dialogues. As described in the comments at http://sourceforge.net/tracker/?func=de ... tid=357023
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#18 Post by saintless »

Hi, SFR :)

Thank you very much for this new option for Rox. It is exactly what I was wondering how to make possible. Your pet package saves me a lot of hard work which probably was going to reach a dead end.

I ask for your permission to include your scripts as a copy-paste option in a remastered version of Sickgut's Pussy-linux. Do you mind if I also do some small modifications with the paths inside the script?

Thanks again and best regards :)
Last edited by saintless on Sun 08 Jul 2012, 05:29, edited 1 time in total.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#19 Post by SFR »

Hey Saintless, nice to see you! :)

Naturally, you can modify it as you wish and put wherever you want.
You didn't even have to ask, but it's nice of you.

And I'm glad you have found it useful.

Thanks & Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#20 Post by saintless »

Thanks, SFR, nice to see you too :)

The main town is much bigger than the village and it is like we don't go often in the same places but the important thing is we are here and we will meet again.

Cheers

edflores80
Posts: 2
Joined: Mon 23 Jul 2012, 02:14

#21 Post by edflores80 »

i guess im out of luck since im more of a gui person...less coding....reminds me of high school...

but...

any other option of being able to click drag like window does? i just need to click drag files into a java applet that says click drag here....

thanks...

ubuntu 9 looks promising.....

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#22 Post by disciple »

Ed, could you try to explain better what you want?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
nic007
Posts: 3408
Joined: Sun 13 Nov 2011, 12:31
Location: Cradle of Humankind

#23 Post by nic007 »

Nice but can the same be done with "move" ? A customised "send to" like in Windows will also be nice. Is there a way of moving something to trash without having to drag and drop it (adding a symlink for trash to "open with" looks a bit silly)?

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#24 Post by musher0 »

nic007 wrote:Nice but can the same be done with "move" ? A customised "send to" like in Windows will also be nice. Is there a way of moving something to trash without having to drag and drop it (adding a symlink for trash to "open with" looks a bit silly)?
I think don570's right-click package will answer your need. It has a link to
the trash folder for a great many ROX actions accessed by right-click.

Ask him directly for the download link, since he's on this thread?
I don't have it at hand.

BFN.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#25 Post by SFR »

Hey guys

I completely forgot about this app (TBH, I'm not using it anymore - drag'n'drop turned out to be faster for me, in the end :wink: ).

As for the trash, I cooked up a script once, that adds/removes 'Trash' shortcut to the right-click menu:

Code: Select all

#! /bin/bash 

# Adds/removes Trash to the context menu
# Usage:
# ./script_name add
# ./script_name remove

OpenWith_PATH="$HOME/.config/rox.sourceforge.net/OpenWith/" 

case "$1" in 
  "add") 
    # Creates missing folders using contents of 'globs' file
    for i in `cat /usr/share/mime/globs | grep ":" | cut -f1 -d ':' | tr '/' '_' | uniq`; do 
      [ ! -d "${OpenWith_PATH}.${i}" ] && mkdir "${OpenWith_PATH}.${i}" 
    done
    # Creates missing folders using contents of 'types' file
    for i in `cat /usr/share/mime/types | tr '/' '_' | uniq`; do
      [ ! -d "${OpenWith_PATH}.${i}" ] && mkdir "${OpenWith_PATH}.${i}" 
    done
    mkdir "${OpenWith_PATH}.inode_unknown" 
    # Creates symlink to the Trash in every folder 
    for i in `find "$OpenWith_PATH" -maxdepth 1 -type d -iname ".*"`; do 
      [ ! -L "$i/Trash" ] && ln -s /usr/local/apps/Trash "$i" 
    done 
  ;; 
   
  "remove") 
    # Removes every symlink to the Trash
    for i in `find "$OpenWith_PATH" -maxdepth 1 -type d -iname ".*"`; do 
      [ -L "$i/Trash" ] && rm "$i/Trash" 
    done 
  ;; 
esac 
   
exit
It covers lots of known (and unknown) filetypes, dirs, symlinks, block devices, actually more than needed...

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#26 Post by disciple »

They were worried about not looking cool having it in the "send to" or "open with" menu though ;)
Actually I think there is a patch somewhere to replace the delete menu entry with it, but I never tried it because I'm not worried about looking cool.
But are you sure
It covers lots of known (and unknown) filetypes, dirs, symlinks, block devices, actually more than needed...
Do you really need to add things for specific filetypes? In the old days, before the first "rox right clicks" package, you just put things in the menu and they applied to all file types - is it not possible to have ones like that as well as ones for specific file types?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#27 Post by SFR »

Do you really need to add things for specific filetypes? In the old days, before the first "rox right clicks" package, you just put things in the menu and they applied to all file types - is it not possible to have ones like that as well as ones for specific file types?
Hmm, I'm not sure, but from what I know the only way to add something to the main level of right-click menu is to bind it with specific mime-type.
Otherwise it can be available only in OpenWith/SendTo, which I'm not saying isn't cool, but it takes additional 2-3 seconds to access it. :wink:
___________

BTW, since the thread has been revived, I took a look into my code and I didn't like what I found there, therefore I rewrote MultiCopyPaste from scratch, but using SOAP RPC method, so now, instead of that ugly terminal window, we have normal ROX copy/move dialog.
Still three options in OpenWith/SendTo submenu, but they have additional leading spaces, so they'll show up on top of the list:
Multi-Copy
Multi-Move
Multi-Paste

Now it's much better. :)

First post updated!

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#28 Post by saintless »

Thank you for version 2, SFR !
ROX gets better and better :)

Cheers, Toni

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#29 Post by SFR »

Hey Toni

You're welcome, I hope the new version works better.
And nice to see you again. :)
___________

I forgot to re-implement the (unique) ability to paste into _multiple_ folders at once, as it was in the previous version.
Added in v2.1.

I also replaced arrow icons with public domain Tango icons for Cut, Copy and Paste actions (oh, I renamed Multi-Move to Multi-Cut, btw).

And the last change is that ROX Copy/Move dialog pops up always now, it's not in "Quiet" mode by default anymore.

First post updated!

Greetings!
Attachments
Screenshot.jpg
(10.8 KiB) Downloaded 299 times
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#30 Post by saintless »

Thanks, SFR!
Nice to see you too :)
Version 2 works fine and it is much more comfortable.
I will updete to ver. 2.1 now.
Thanks again!

Best regards, Toni

mfb

#31 Post by mfb »

Hi all,

I understand how to use “new

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#32 Post by SFR »

mfb wrote:* to see an example of how to use multiple sources in v 2.2
especially if they can all be pasted into a linked folder.
Which distro you're using MultiCP on?
I just tried in latest Fatdog and Tahr-6.0.5 and this works:

1. Select source files/directories.
2. Right-click any of the selected items -> OpenWith (or SendTo) -> Multi-Copy
3. Select target directory/ies (or symlinks).
4. Right-click any of the selected items -> OpenWith (or SendTo) -> Multi-Paste

Of course in case of single source/target items the Multi-* options are available in the root of right-click menu, so OpenWith/SendTo step is not necessary.

So, at what stage it fails for you?

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

mfb

#33 Post by mfb »

Hi SFR,

Thank you for helping. I have tried to follow your advice using Tahr-64.6.0.5, but I have failed.

I have dragged the "downloads" directory from /root and dropped it on my desktop.

I have made two directories in /root named "1" and "2", each of which holds a tiny picture respectively named "1.png" and "2.png".
After downloading the attached holder.pet copies may be extracted.

I'm trying to copy 1.png, then 2.png and paste them into my desktop copy of the downloads directory in a single operation.

I hope I know how to select the files using ctrl + left click and how to perform actions using right click, but I even doubt I'm collecting both files properly so I don't seem to get the chance to paste both (only one from the main menu).

Some five-year-olds are brilliant, so please direct any detailed explanation as if to a reasonably competent four-year-old.
Attachments
holder.pet
(5.22 KiB) Downloaded 140 times

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#34 Post by SFR »

Oh, I think I misunderstood you.
You want to copy files from two different locations in one go, right?
Well, MCP-2.x (unlike 1.x branch) doesn't work this way anymore.
You can still cut/copy multiple items, but they all have to be in the same folder.
It behaves just like in any other file manager (SpaceFM, Thunar, Windows Explorer).

Also, now I see that by "linked folder" you meant a shortcut on the pinboard, not a symlink.
Quick fix for MCP-1.1 is:

Code: Select all

ln -s /usr/local/apps/Multi-Paste ~/.config/rox.sourceforge.net/OpenWith/.inode_directory
After that when you right-click a folder shortcut on the pinboard, you'll get access to "Multi-Paste" option.

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
nic007
Posts: 3408
Joined: Sun 13 Nov 2011, 12:31
Location: Cradle of Humankind

#35 Post by nic007 »

Hi, SFR. Thanks for this great application. So, I need to use version 1.1 if I want to copy/move from different source folders in one operation (using the add option)? May I ask why you changed (omitted) this useful extra function in the 2 series? I use only one fixed ROX window all the time and explore quickly via ROX's favourite function, so the copying/moving from different source folders in one operation is particularly useful. Thanks.

Post Reply