Yokemate of Keyboards
Posts: 2087 from 2003/2/24
From: po-RNO
Quote:
Papiosaur wrote:
Possibility to clone a file with a different name in contextual menu.
It's quite easy to add the functionality by mime/filetype configuration.
I don't remember if I've made these myself originally or got from somewhere else and modified a bit later, but add these to the
SYS:Prefs/Ambient/filetypes/internal/x-morphos-globalaction-file file (or edit via Ambient->Mime->Internal settings):
Code:
Action
Name Duplicate
Event Menu
Command AMIGADOS Copy "%sp" "%sp.copy" CLONE
Flag unquoted
End
Action
Name Duplicate as...
Event Menu
Command AMIGADOS Copy "%sp" `RequestFile FILE="%sf.copy" TITLE="Enter New Filename"` CLONE
Flag cd source
Flag unquoted
End
And to duplicate directories, edit the
SYS:Prefs/Ambient/filetypes/internal/x-morphos-globalaction-directory file:
Code:
Action
Name Duplicate
Event Menu
Command AMIGADOS Copy "%sp" "%sp.copy" ALL CLONE QUIET
Flag unquoted
End
Action
Name Duplicate as...
Event Menu
Command AMIGADOS Copy "%sp" `RequestFile FILE="%sf.copy" TITLE="Enter New Filename"` ALL CLONE QUIET
Flag cd source
Flag unquoted
End