Worker file manager

Context menus

The context menu allows to execute commands for the current file, and to add or remove labels. Also, file filters to hide specific files can be changed directly within the menu.

To open the context menu, you can right-click or shift right-click on the file (depending on the mouse settings) or pressing Shift-Space.

The menu can be navigated by using the mouse or the keyboard with the cursor keys. You can filter the menu by entering a filter string any time.

The "change label" submenu can be used to add or remove labels for the current entry. Labels are bascially special bookmarks with a simple tag to group them. You can select special pre-defined labels with configurable colors or any existing label from the bookmarks. You may also directly create a new label within the menu.

The bookmark command or path jump command allows to directly access those labeled entries. It is also possible to filter the current view to only show labeled entries (and directories containing labeled entries) by using the set filter command or accessing the list view options.

The second submenu "change filter" can be used to add or remove file filters based on patterns like *.bak. The submenu shows a list of all matching patterns from the "filter select" history and the "set filter" history as well as the actual file ending of the current file. Also, you can select to disable all currently active filters, or select a specific filter to disable.

Finally the context menu list all actions defined for the current file type. Usually there are some actions available most of the time, like the "double click action", but others are shown based on the actual file type. Arbitrary commands can be assigned to file types and accessed with the context menu. Read on to learn about how to add new entries to the context menu.

If there are more than one element selected, the context menu shows those actions that are available for all selected files. For instance, if multiple images are selected, all can be viewed by select the corresponding view action (if defined in the file type configuration). If files with different file types are selected, an additional submenu allows to access actions only for the currently highlighted (or active) element.

How to modify the context menu for files

The context menu (introduced in Worker 2.16.0) allows easy access to the file type actions defined for a file type. You can also add additional actions to be available via the context menu. The following example illustrates the necessary steps.

Let's consider the following situation. For video files there's already a "show" action defined which executes mplayer for playing the actual file. Now you want to have an option to play a file with some specific arguments (like "-forceidx"). If you add another action for the corresponding file type you will be able to select it from the context menu.

1. Open the configuration for the video file type. There are several video formats defined in the default configuration but we want to add this action for all video files so select the parent type "video".
2. When you edit this file type you see a list of actions defined for this type. There are many predefined actions like the "show" action. Now click on "New action" to create another custom action.
3. Enter some appropriate name (e.g. "mplayer -forceidx") and click "Okay".
4. Add a new command for this action, in our case the "own command". Enter "mplayer -forceidx {f}" as program name and close the dialog again.
5. Close all dialogs and save the configuration.
6. Now you can go to a video file and open the context menu by right clicking on it. You should see the newly created action in the menu and it should start mplayer with the argument "-forceidx" when selected.