FIXME Describe what happens when starting an action.

FIXME What happens on a doubleclick.

FIXME Filetype actions

Flag replacement

Worker replaces placeholders (flags) with actual file names when starting external programs (and in some other places too). Basically there are two different types: A placeholder can be replaced by the name of the first selected entry (file or directory) or by all selected entries.

When executing a command Worker builds a temporary list of all selected entries. For the “first selected entry” Worker uses the first entry in this list, for “all selected entries” Worker uses all entries in the list.

However, although it says “first/all selected” not in every case it does what it says. It depends on the context what will be inserted in the list and eventually replaced for a placeholder.

  • No context
    If you click on a button or press a hotkey the commands in the corresponding command list are executed without a context. This means that all currently selected entries are stored in a temporary list. Using this list Worker replaces all placeholders. This is what normally is expected to happen.
  • Context
    The normal behaviour is unsuited for some situations. For example, if you double click an entry you want to start an action on this item and not any other. In the following situations only the corresponding entry is inserted into the list so flags for the first and all selected entries will always be this entry.
    1. Doubleclick
    2. Drag'N'Drop
    3. Executing the commands “show action”/“raw show action”/… which starts the corresponding command list for each entry in the file list.

Some words about reusing of some entries: In normal operation the entry is removed from the list when it is replaced in a command string. For example using {f} twice will not results in a double insertion of the same file name but in the insertion of the first and second selected file. It is possible to prevent this by using the “no unselect” modifier for the flag (in this example {uf}). This way the file remains in the list and will be used for another flag replacement.

 
worker/doc/workflow.txt · Last modified: 2006/02/21 22:34 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU General Public License
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki