recentfilecmd Parameter

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

  1. To query the current value of the recentfilecmd parameter, type:
    query recentfilecmd 
  2. To change the command used to open the file my_file.txt to include an asis option, type:
    set recentfilecmd lx my_file.txt /asis
  3. A sequence of commands can be specified. For example, to change the command used to open the file my_file.txt to include an asis option and sound an alert on loading, type:
    set recentfilecmd mult ;lx my_file.txt /asis ;alarm ;alarm

API Return Codes

None.


recentmenushow Parameter
recentpathshow Parameter
recentsize Parameter