Macros beginning with @

Far Manager Macro System

Macros beginning with @


If a macrosequence begins with the @ character, then the rest of the sequence is treated as name of the file containing Lua script.

  • Environment variables in the file name are automatically expanded.
  • The global (within the environment of the script) variable _filename contains the file name.
  • Such scripts are easier for debugging and modifications, as they are automatically reloaded at each macro invocation.

Example 1:

    lua: @%FARHOME%\test\test.lua 123, "hello"

Example 2: running script from within the editor.