Useractions

With the useraction-system the user can make its own actions on files in the panel or to access krusader-internal functions with parameter directly using placeholder. The actions integrate seamless into KDE's action-system, so the standard edit-toolbar/shortcut-dialogs can will show/manipulate the useractions too. The useractions are stored in ~/.kde/share/apps/krusader/useraction.xml (the file-structure is documentated in doxygen-headers of UserActionXML). Several examples of useraction.xml files can be found here. Useractions can be edit/add/im-/export using a new Konfigurator-module, although we plan to move all action-related to a new ActionMan. Once you understand howto write useractions you will find that Krusader is a very powerfull, customizable tool. Commands->User Menu or Ctrl+` opens the User Menu. The User Menu is only one place from where you can access Useractions. Useractions can appear nearly everywhere, not only in the User Menu. A menu entry Add new entry is available to add a new Useraction.

Managing Useractions

Open Konfigurator and choose "Useractions", here you can add/edit/remove/inport/export Useractions.

All actions you've defined are now shown in the usermenu and in KDE's dialogs for changing shortcuts and managing the toolbar. In addition all actions available for the current item will also show up in the rightclick menu.

Basic Properties

"Distinct Name", "Title" and "Command line" are always required, all the other properties are optional.

Currently, these placeholder are implemented (for details see UserAction/expander.cpp or doxygen):

A GUI-based helper for placeholder-adding is provided. Spaces In Path, Current and List are per default automaticly escaped. There is one more important thing to know: All placeholders who interact with Krusader-internal functions are called at expand-time (meaning directly when the placeholders are replaced). External programms are called at execution-time (meaning after all placeholders are replaced).

Advanced Properties

Here you can configure where your command should be visible (for the rightclick-menu) In addition it's possible to change the command executed and confirm it separatly. You can also set a user under which the command should be executed.