~~Title: Recent ~~
The **Recent** internal command can be used to:
* Display a dynamic list of your [[:basic_concepts:the_lister:navigation:recent_and_history_lists|Recent folders]]
* Filter the recent to display only folders beneath a certain path
* Clear the Recent list
**Command Arguments:**
$$ Argument
$$ Type
$$ Possible values
$$ Description
$$ (#)//(no argument)//
$$ -
$$ -
$$ Displays a dynamically generated list of your [[:basic_concepts:the_lister:navigation:recent_and_history_lists|recently visited folders]] - you can navigate to a folder simply by selecting it from this list. Acts as a [[:customize:creating_your_own_buttons:editing_the_toolbar:dynamic_buttons|dynamic button]].
Some of the arguments of this command can modify the appearance and behaviour of the dynamic list.
``Recent``
$$ CLEAR
$$ /S
$$ //(no value)//
$$ Clears the recent folders list.
``Recent CLEAR``
$$ COPY
$$ /O
$$
$$ Selecting a folder from the recent list will trigger the **Copy** command with the specified arguments. For example, you could have one drop-down recent list for **Copy** and another for **Move**, using different arguments. Note that if more than one **Copy** command argument is specified they must be enclosed in quotes.
``Recent COPY``\\
``Recent COPY MOVE``
$$ HEADING
$$ /O
$$ //(no value)//
$$ When used with commands which generate a list of items (see [[:customize:creating_your_own_buttons:editing_the_toolbar:dynamic_buttons|dynamic buttons]]), the **HEADING** argument adds a small heading at the start of the list. The heading will be hidden when the list is empty. Headings only happen for commands which potentially generate multiple items at the same level as the button itself.
When **HEADING** is used by itself, without specifying a text value, the main button's label text is used for the heading.
``Recent HEADING``
$$
$$
$$ ////
$$ You can specify the heading text if you want it to be different to the button's label.
``Recent HEADING="Recent Paths"``
$$ KEYARGS
$$ /K/M
$$ // ...//
$$ When displaying the recent list, this argument lets you assign different behaviour to the items in the list if a qualifier key is held down. This is a multiple value argument - for each qualifier key combination listed, you can define a separate set of arguments that will be used when the item in the list is selected.
For example, you could configure your Recent menu to open folders in a new tab by default, but in a new Lister if the Ctrl key were held down.
The qualifier part of the value consists of one or more keywords that represent the qualifier keys - **ctrl**, **shift** and **alt**. These can be combined, for example **ctrlshift** means that both the Ctrl and Shift keys must be held down. You can also use the keyword **none** to indicate arguments that are applied when no qualifiers are held.
You can also assign the **Copy** command to a particular key combination; selecting an item from the recent list with the appropriate key held down would then copy (or move) selected files to the recent location.
``Recent KEYARGS "ctrl:NEW" "shift:Copy MOVE" "none:NEWTAB=findexisting"``
(Opus 13.9.3 and above:) By default, middle-clicking a folder will open it in a new tab. You can override this with the **mmb** qualifier.
``Recent KEYARGS "mmb:NEW"``
$$ MULTIFUNC
$$ /O
$$ //(no value)//
$$ The generated list of recent folders will be [[:customize:creating_your_own_buttons:editing_the_toolbar:multiple_function_buttons|multiple function buttons]] (three-button buttons) - clicking them with the left mouse button will act as if **OPENINLEFT** were set, the right button will act as if **OPENINRIGHT** were set, and the middle mouse button will act as if **NEW** were set.
``Recent MULTIFUNC``
$$
$$
$$ **tabs**
$$ Similar to the above except the left and right mouse button functions will open a new tab on the appropriate side of the Lister. You can control how new tabs are opened with the **NEWTAB** argument.
``Recent MULTIFUNC=tabs``
$$ NAMESONLY
$$ /S
$$ //(no value)//
$$ Each item in the list will only display its respective folder's name, not the full path. Full paths are displayed in tooltips instead.
``Recent NAMESONLY``
$$ NEW
$$ /S
$$ //(no value)//
$$ Recent folders selected from the list generated by this command will open in a new Lister instead of the current one.
``Recent NEW``
$$ NEWTAB
$$ /O
$$ //(no value)//
$$ Recent folders selected from the list generated by this command will open in a [[:basic_concepts:the_lister:tabs|new tab]].
``Recent NEWTAB``
$$
$$
$$ **deflister**
$$ If no lister exists, the Default Lister will open with an additional tab for the folder. If a lister exists, the folder will open normally in a new tab within the existing lister.
``Recent NEWTAB=deflister``
$$
$$
$$ **findexisting**
$$ Look for the folder in an existing tab before opening a new one. If found, the existing tab will be brought to the front; otherwise a new tab will be opened. The active tab is checked first, and nothing will happen if the active tab already displays the selected path.
``Recent NEWTAB=findexisting``
$$
$$
$$ **findinactive**
$$ Like **findexisting**, except that if the active tab already has the selected path then a new tab will be opened. Intended for buttons which switch to existing tabs to reduce clutter while retaining the ability to open a second tab for the same folder when needed.
``Recent NEWTAB=findinactive``
$$
$$
$$ **nofocus**
$$ New tabs opened by recent folders selected from the list will not be brought to the front.
``Recent NEWTAB=nofocus OPENINDUAL``
$$
$$
$$ **tofront**
$$ If the folder was found in an existing tab, bring that tab to the front (only used with **findexisting**).
``Recent NEWTAB=findexisting,tofront``
$$ NOLABEL
$$ /S
$$ //(no value)//
$$ The recent list displayed by this command will not show any labels for the folders.
``Recent NOLABEL``
$$ OPENINDEST
$$ /S
$$ //(no value)//
$$ Recent folders selected from the list will open in the destination file display or Lister.
``Recent OPENINDEST``
$$ OPENINDUAL
$$ /S
$$ //(no value)//
$$ Recent folders selected from the list will open in the other file display of a dual-display Lister. The Lister will be set to dual-display mode if it isn't in that mode already.
``Recent OPENINDUAL``
$$ OPENINLEFT
$$ /S
$$ //(no value)//
$$ Recent folders will open in the left-hand (or top) display of a dual-display Lister.
``Recent KEYARGS none:OPENINLEFT ctrl:OPENINRIGHT``
$$ OPENINRIGHT
$$ /S
$$ //(no value)//
$$ Recent folders will open in the right-hand (or bottom) display of a dual-display Lister.
``Recent NEWTAB OPENINRIGHT``
$$ PATH
$$
$$ ////
$$ Filters the displayed recent list to only show folders matching or below the specified path. This is the default argument for the **Recent** command and so you do not need to specify the **PATH** keyword. Make sure you enclose the path in quotes if it contains spaces.
``Recent C:\``
$$ SHOWICONS
$$ /S
$$ //(no value)//
$$ The recent list displayed by this command will display icons for the items within it. Note that the button that contains the **Recent** command must also have its **Show image** option turned on.
``Recent SHOWICONS``
$$ USEQUALKEYS
$$ /S
$$ //(no value)//
$$ Activates pre-configured behaviour for the main qualifier keys - **Control** will open the recent folder in the dual-display, **Shift** in a new Lister and **Alt** in a new tab.
This is equivalent to `Recent KEYARGS ctrl:OPENINDUAL shift:NEW alt:NEWTAB`.
``Recent USEQUALKEYS``