Enhancing Krusader Usability

    0. Intro.


    Undoubtedly, krusader is a leader among graphic file managers. Outwardly similar to the famous Total Commander, but the functionality is weaker. I will now show how you can improve usability a little for everyday use. And we will do this through useractions. With their help, you can do almost any action with the files and the program, it doesn’t matter that packing the files with one click or complex actions with a group of files, or something else (you can do it before downloading files from neta and then processing them).



    So, the toolbar where the action icons will be placed is visible in the picture above.

    1. Let's get started.


    To create / manage user actions, there is an item in the menu - Useractions -> Manage User Actions ...
    It sets the parameters for the created action. Such as title, picture, category. By the way, if you don’t have the category you need, you can just write down the name and it will be created automatically. In the Command field, you write the necessary commands for bash. Elementary. You can use any commands from the system or their combination.



    In this example, a script was written to export a given database. The team in this case looks like this:
    mysqldump -uroot -p111111 %_Ask("Enter the database name?", "", "Enter the database name")% > db.sql

    To help create teams for the crusader, there is a small helper. Click on the button with a cross to the right of the “Command” field and you will be able to choose the pre-defined methods of the crusader. They are grouped in relation to the panels:
    1. Active Panel - file manipulations in the active panel.
    2. Other Panel - for an inactive panel.
    3. Left \ Right Panel - for the left and right panel.
    4. Panel Independend - contain dialogs with the user and internal commands of the crusader.

    After completing these steps and saving, we will get a new item by right-clicking in the User Actions menu.

    2. In one click.


    Now that the action is created, you can get rid of the extra mouse clicks. Take action to the toolbar!
    Settings -> Configure Toolbars.
    Find our action on the left and add it to the right column.



    And we get a nice button in the toolbar.

    3. Examples of useraction scripts.



    Add the file to svn:
    svn add %aCurrent%

    Delete the file from svn:
    svn remove %aCurrent%

    Go to another folder:
    %aGoto("/home/")%

    Run the program:
    /usr/bin/konsole
    (yes, just writing the path to the executable file)

    Add the file to the Amarok’s playlist:
    amarok --append %aList("Selected")%

    Mount the section:
    mount -t %_Ask("Filesystem Type?")% %_Ask("Device ?")% %_Ask("Mount Point ?")%

    Copy the file to another panel and open it:
    %_Copy("%aCurrent%", "%oPath%")% kate %oPath%%aCurrent("Yes")%
    (this way you can combine several teams into one)

    Also popular now: