<tooltip>Backup current file in current directory.</tooltip>
<icon>filesaveas</icon>
<category>File</category>
<description>Backups current file in current directory and asks the user for a new filename. By default ".old" is appended to the original filename.</description>
<commandrun_as="root"executionmode="collect_output">mount -t %_Ask("Filesystem Type?")% %_Ask("Device ?")% %_Ask("Mount Point ?")%</command>
<defaultshortcut>Alt+Ctrl+M</defaultshortcut>
</action>
<actionname="system_umount">
<title>Unmount</title>
<tooltip>Umount filesystem of current directory.</tooltip>
<icon>kcmpartitions</icon>
<category>System</category>
<commandrun_as="root"executionmode="collect_output">result=`umount '%aCurrent%' 2>&1`; case "$?" in 0) kdialog --title Krusader --msgbox "Filesystem unmounted"; ;; 1) apps=`lsof | grep '%aCurrent%' | head | cut -d ' ' -f 1`; kdialog --title Krusader --error "Could not unmount filesystem.\n\nIt is still in use by the following applications:\n$apps"; ;; *) kdialog --title Krusader --error "Could not unmount filesystem.\n$result"; ;; esac</command>
</action>
<actionname="system_Eject">
<title>Eject cd/dvd</title>
<tooltip>Unmounts and ejects current cdrom/dvd.</tooltip>
<tooltip>Make ar (.a, .deb, ...) archive of selected files to other panel.</tooltip>
<icon>ark</icon>
<category>Archive</category>
<description>Make an archive using the ar utility, which is used for static libraries (*.a) or debian packages. Like tar, ar does not use any compression.</description>
<commandexecutionmode="terminal">sh -c 'A=%_Ask("Enter file name of the archive:", "%oPath%%aCurrent(\"Yes\")%.a", "ar pack")% ; rm -f "$A"; ar -rc "$A" %aList("Selected", "", "Yes")% '</command>
</action>
<actionname="archive_tar_7z">
<title>tar.7z selected files</title>
<tooltip>Make tar.7z archive containing selected files to other panel.</tooltip>
<tooltip>Creates a directory with the archive name before unpacking.</tooltip>
<icon>package</icon>
<category>Archive</category>
<description>Creates a directory with the current archive name in the other panel before unpacking the files into it. It uses ark and tries to guess the directory name (archive name without file extension).</description>
<description>Extract an ar archive using the ar utility, which is used for static libraries (*.a) or debian packages (you can extract debian packages this way without having dpkg installed). Like tar, ar does not use any compression.</description>
<commandexecutionmode="terminal">sh -c 'A=%_Ask("Enter the path, where the archive should be unpacked to:", "%oPath%", "ar unpack")% ; cd "$A"; for i in %aList("Selected")% ; do ar x "$i"; done '</command>
</action>
<actionname="archive_multi_zip_unpack">
<title>Unpack multiple zip arc&hives</title>
<icon>package</icon>
<tooltip>Unpack multiple zip archives</tooltip>
<category>Archive</category>
<description>Unpack all selected zip archives into separate direcories. The new directory name has the same as the zip archive name.</description>
<commandexecutionmode="collect_output">for file in %aList("Selected")%; do dir=`basename $file|sed -e 's/.zip//g'`; unzip $file -d %oPath%/$dir; done</command>
<description>TC-like "load selection from file". Use this action on a text file which contains a list of filenames and these files will be selected.</description>
<title>Javascript, recode files using GNU recode</title>
<icon>charset</icon>
<category>File</category>
<description>A javascript useraction, which converts either file names or their content or both from one to another character encoding. It processes all selected files and directories in the active panel (for the directories, recurse their content). You can select, whether a recoded copy is created or if the file is moved (there is no warranty, so don't test move on any important data)
Requirements:
You need krusader compiled with javascript support and GNU recode installed.</description>
<title>Javascript, recode files using iconv</title>
<icon>charset</icon>
<category>File</category>
<description>A javascript useraction, which converts either file names or their content or both from one to another character encoding. It processes all selected files and directories in the active panel (for the directories, recurse their content). You can select, whether a recoded copy is created or if the file is moved (there is no warranty, so don't test move on any important data)
Requirements:
You need krusader compiled with javascript support and iconv installed.</description>
You need krusader compiled with javascript support.</description>
<command>%_Script("calc.js")%</command>
</action>
<actionname="archive2dir">
<title>Archive to Dir</title>
<tooltip>Creates a directory with the archive name before unpacking</tooltip>
<icon>ark</icon>
<category>System</category>
<description>Creates a directory with the current archive name in the other panel before unpacking the files into it. It uses ark and tries to guess the directory name (archive name without file extension).</description>
<tooltip>make an 7zip archive containing current file</tooltip>
<category>Compression</category>
<command>rm -f %aCurrent("Yes")%.7z; 7z a -mx=9 -mfb=128 -md=8m %aCurrent("Yes")%.7z %aCurrent("Yes")%</command>
<defaultshortcut>Ctrl+Ampersand</defaultshortcut>
</action>
<actionname="7z_pack">
<title>7zip pack</title>
<tooltip>7zip selected files with dialog and terminal with progress.</tooltip>
<category>Compression</category>
<commandexecutionmode="terminal">sh -c 'A=%_Ask("Enter file name of the archive:", "%oPath%%aCurrent(\"Yes\")%.7z", "7zip pack")% ; rm -f "$A"; 7z a -mx=9 -mfb=128 -md=8m "$A" %aList("Selected", "", "Yes")% '</command>
</action>
<actionname="7z_unpack">
<title>7zip unpack</title>
<tooltip>unpack 7zip archives with dialog and terminal with progress.</tooltip>
<category>Compression</category>
<commandexecutionmode="terminal">sh -c 'A=%_Ask("Enter the path, where the archive should be unpacked to:", "%oPath%", "7zip unpack")% ; cd "$A"; for i in %aList("Selected")% ; do 7z x "$i"; done '</command>
</action>
<actionname="tar.7z_pack">
<title>make tar.7z archive</title>
<tooltip>7zip selected files with dialog and terminal with progress.</tooltip>
<category>Compression</category>
<commandexecutionmode="terminal">sh -c 'A=%_Ask("Enter file name of the archive:", "%oPath%%aCurrent(\"Yes\")%.tar.7z", "7zip pack")% ; rm -f "$A"; tar cvf - %aList("Selected", "", "Yes")% | 7z a -mx=9 -mfb=128 -md=8m -si "$A" >/dev/null '</command>
</action>
<actionname="tar.7z_unpack">
<title>unpack tar.7z archive</title>
<tooltip>unpack 7zip archives with dialog and terminal with progress.</tooltip>
<category>Compression</category>
<commandexecutionmode="terminal">sh -c 'A=%_Ask("Enter the path, where the archive should be unpacked to:", "%oPath%", "7zip unpack")% ; cd "$A"; for i in %aList("Selected")% ; do 7z x -so "$i" 2>/dev/null | tar xvf - ; done '</command>
<command>sh -c 'A=%_Ask("Enter file name of the archive:", "%oPath%%aCurrent(\"Yes\")%.a", "ar pack")% ; rm -f "$A"; ar -rc "$A" %aList("Selected", "", "Yes")% '</command>
</action>
<actionname="ar_unpack">
<title>Unpack an ar archive (.a, .deb, ...)</title>
<command>sh -c 'A=%_Ask("Enter the path, where the archive should be unpacked to:", "%oPath%", "ar unpack")% ; cd "$A"; for i in %aList("Selected")% ; do ar x "$i"; done '</command>