Operation mode

Far Manager

Operation mode

The OpMode parameter passes to plugin additional information about function operation mode and place, from which it was called. It can be a combination of the following values (OPERATION_MODES enum):
ModeDescription
OPM_SILENT Plugin should minimize user requests if possible, because the called function is only a part of a more complex file operation.
OPM_FIND Plugin function is called from Find file or another directory scanning command. Screen output has to be minimized.
OPM_VIEW Plugin function is called as part of a file view operation. If file is viewed on quickview panel, than both OPM_VIEW and OPM_QUICKVIEW are set.
OPM_QUICKVIEW Plugin function is called as part of a file view operation activated from the quick view panel (activated by pressing Ctrl-Q in the file panels).
OPM_EDIT Plugin function is called as part of a file edit operation.
OPM_DESCR Plugin function is called to get or put file with file descriptions.
OPM_TOPLEVEL All files in host file of file based plugin should be processed. This flag is set when executing Shift-F2 and Shift-F3 FAR commands outside of host file. Passed to plugin functions files list also contains all necessary information, so plugin can either ignore this flag or use it to speed up processing.
See also: