Specifies the Editor command processed when a file name is selected from the recently-accessed file list in the Editor window.
| Note: | This parameter is valid only in an Editor window. |
Scope: File
Syntax
query recentfilecmd
set recentfilecmd [Command]
Options
Command |
Any Editor command. |
Description
Each file name entry in the recently-accessed file list has an associated open command associated with it. The recentfilecmd parameter can query and change this command.
If the current document is not in the recently-accessed file list, setting the recentfilecmd parameter adds the current file name and new Command to the recently-accessed file list.
If Command is left blank, the name of the current file is removed from the recently-entered file list.
The command associated with a file name in the recently-accessed file list is saved between Editor window sessions. However, the command is applied only if the file is opened by selecting its entry on the recently-accessed file list. This list is displayed only if the recentmenushow and recentsize parameters are set accordingly. Opening the file in another way replaces the command in the recently-accessed file list with a default file open command assigned by the Editor.
No checking is performed on the validity of Command.
Example
query recentfilecmd
set recentfilecmd lx my_file.txt /asis
set recentfilecmd mult ;lx my_file.txt /asis ;alarm ;alarm
API Return Codes
None.
![]()
recentmenushow Parameter
recentpathshow Parameter
recentsize Parameter
