# Favorites

The **Favorites** internal command can be used to:

* Display a dynamic list of your [Favorite folders](../../../basic_concepts/the_lister/navigation/favorites) (either all Favorites or a specific sub-branch)
* Display a dynamic list of your [SmartFavorite folders](../../../basic_concepts/the_lister/navigation/smartfavorites)
* Add a folder to your Favorites
* Create a new [folder alias](../../../basic_concepts/the_lister/navigation/aliases)
* Edit your Favorite folders (by opening Preferences to the [Favorites List](../../../preferences/preferences_categories/frequently_used_paths/favorites_list) page)

**Command Arguments:**

| Argument        | Type | Possible values              | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| --------------- | ---- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| _(no argument)_ | -    | -                            | <p>Displays a dynamically generated list of your <a href="../../../basic_concepts/the_lister/navigation/favorites">favorite folders</a> - you can navigate to a folder simply by selecting it from this list. Acts as a <a href="../../../customize/creating_your_own_buttons/editing_the_toolbar/dynamic_buttons">dynamic button</a>.</p><p>Some of the arguments of this command can modify the appearance and behaviour of the dynamic list. Note the <strong>PATH</strong> argument lets you optionally specify a sub-branch of the Favorites list.</p><p><em>Example:</em> <code>Favorites</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ADD             | /O   | _(no value)_                 | <p>Add the current source folder to your Favorites list. The entire path of the folder will be displayed in the Favorites list by default.</p><p><em>Example:</em> <code>Favorites ADD</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|                 |      | **nameonly**                 | <p>Add the current source folder to your Favorites list, with the name of the favorite entry set to the name of the folder (so that only the name shows in the Favorites list, not the entire path).</p><p><em>Example:</em> <code>Favorites ADD=nameonly</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|                 |      | **alias**                    | <p>Add or modify a folder alias instead of a favorite. You may use the <strong>NAME</strong> argument to specify the name of the alias, or omit it to automatically use the folder's name. You may use the <strong>PATH</strong> argument to specify the path the alias should point to, or omit it to automatically use the current path.</p><p>There are two alternative syntaxes for adding an alias. Using <strong>ADD=alias</strong> is the same as using <strong>ALIAS=set</strong>, other than the behavior of the <strong>PATH</strong> and <strong>NAME</strong> arguments as noted.</p><p><em>Example:</em> <code>Favorites ADD=alias PATH "C:\Users\Jon\Documents"</code></p>                                                                                                                                                                                                                                                                                                                                                                |
| ADDDIALOG       | /S   | _(no value)_                 | <p>Display a dialog that lets you edit the name and path when adding a new favorite folder.</p><p><em>Example:</em> <code>Favorites ADDDIALOG</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ALIAS           | /K   | **delete**                   | <p>Deletes a folder alias. The alias name must be given by the <strong>NAME</strong> argument, and is not optional.</p><p><em>Example:</em> <code>Favorites ALIAS=delete NAME=MyAlias</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|                 |      | **set**                      | <p>Creates or modifies a folder alias. The alias name must be given by the <strong>NAME</strong> argument, and the path must be given by the <strong>PATH</strong> argument, with neither being optional.</p><p><em>Example:</em> <code>Favorites ALIAS=set NAME=MyAlias PATH "C:\Users\Jon\Documents"</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|                 |      | **list**                     | <p>Generates a dynamic list of aliases, instead of the regular Favorite list. Use this if you want a menu of your aliases which (depending on other arguments) you can click on to go to them, copy files to them, and so on.<br>By default only your user-defined aliases are shown; use the **builtin **or <strong>all</strong> keywords to override this.</p><p><em>Example:</em> <code>Favorites ALIAS=list NOOPENINTABS SHOWICONS</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|                 |      | **builtin**                  | <p>Use in conjunction with the <strong>list</strong> keyword to only show the large list of built-in aliases (by default only user-defined aliases are included).</p><p><em>Example:</em> <code>Favorites ALIAS=list,builtin SHOWICONS</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|                 |      | **all**                      | <p>Use in conjunction with the <strong>list</strong> keyword to include both user-defined and built-in aliases in the list.</p><p><em>Example:</em> <code>Favorites ALIAS=list,all</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| AUTOCREATE      | /S   | _\<branch path>_             | <p>Automatically creates the branch specified by the <strong>BRANCH</strong> argument if it doesn't already exist. This is most commonly used by the Favorites Bar, in order to automatically create the appropriate branch of the favorites tree when the toolbar is opened.</p><p><em>Example:</em> <code>FAVORITES BRANCH="Favorites Bar" AUTOCREATE</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| BRANCH          | /K   | _\<branch path>_             | <p>Specifies a branch of the favorites tree to display, or when used with the <strong>ADD</strong> or <strong>ADDDIALOG</strong> arguments, the branch to add a new favorite to. To display the entire favorites tree or to add to the root of the favorites tree, omit the <strong>BRANCH</strong> argument entirely. Specify nested branches with a <strong>\</strong> between each component, similar to a folder path.</p><p>If you specify a branch where some or all parts do not exist, when used with <strong>ADD</strong> or <strong>ADDDIALOG</strong> the missing parts will be created. When used to display the favorites list, you can specify the <strong>AUTOCREATE</strong> argument to automatically create the branch if it doesn't already exist.</p><p>When used with <strong>ADDDIALOG</strong>, the specified path will be selected by default but can then be changed when interacting with the dialog.</p><p><em>Example:</em> <code>Favorites ADD BRANCH="Test Data\Photos"</code></p>                                        |
| COPYTO          | /S   | _(no value)_                 | <p>Modifies the generated list of favorites, turning each item into a "copy" button that will copy selected files to the favorite folder.</p><p><em>Example:</em> <code>Favorites COPYTO</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| EDIT            | /S   | _(no value)_                 | <p>Display the <a href="../../../preferences/preferences_categories/frequently_used_paths/favorites_list"><strong>Favorites List</strong></a> page in Preferences.</p><p><em>Example:</em> <code>Favorites EDIT</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| EXCLUDEBRANCH   | /K   | _\<name or pattern>_         | <p>When displaying a list of Favorites, you can use the <strong>EXCLUDEBRANCH</strong> argument to exclude whole branches of the favorites tree from the generated list. You can specify the full branch path, or use a <a href="../../wildcard_reference/pattern_matching_syntax">wildcard</a>.</p><p><em>Example:</em> <code>Favorites EXCLUDEBRANCH NetworkFaves</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| FILTER          | /K   | _\<wildcard>_                | <p>When displaying a list of Favorites or <a href="../../../basic_concepts/the_lister/navigation/smartfavorites">SmartFavorites</a>, you can use the <strong>FILTER</strong> argument to filter the list by path, using a <a href="../../wildcard_reference/pattern_matching_syntax">wildcard</a>. Paths which do not match the wildcard will be hidden from the generated list, and any sub-branches which become empty will also be pruned.</p><p>``Favorites SHOWICONS FILTER C:\`*<br>// Shows only paths that begin with C:\//</p><p><em>Example:</em> <code>Favorites SHOWICONS FILTER "~(*Program Files\*)"</code><br>// Shows only paths that do not contain Program Files.//</p><p>To filter the list by sub-branch rather than path, see the <strong>PATH</strong> argument instead.</p>                                                                                                                                                                                                                                                      |
| HEADING         | /O   | _(no value)_                 | <p>When used with commands which generate a list of items (see <a href="../../../customize/creating_your_own_buttons/editing_the_toolbar/dynamic_buttons">dynamic buttons</a>), the <strong>HEADING</strong> 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.<br>When <strong>HEADING</strong> is used by itself, without specifying a text value, the main button's label text is used for the heading.</p><p><em>Example:</em> <code>Favorites SMART HEADING</code></p>                                                                                                                                                                                                                                                                                                                                                                                                 |
|                 |      | _\<heading text>_            | <p>You can specify the heading text if you want it to be different to the button's label.</p><p><em>Example:</em> <code>Favorites HEADING="Best Folders"</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| KEYARGS         | /K/M | _\<qualifier:arguments> ..._ | <p>When displaying a list of favorites, 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.</p><p>For example, you could configure your favorites menu to open favorite folders in a new tab by default, but in a new Lister if the Ctrl key were held down.</p><p>The qualifier part of the value consists of one or more keywords that represent the qualifier keys - <strong>ctrl</strong>, <strong>shift</strong> and <strong>alt</strong>. These can be combined, for example <strong>ctrlshift</strong> means that both the Ctrl and Shift keys must be held down. You can also use the keyword <strong>none</strong> to indicate arguments that are applied when no qualifiers are held.</p><p><em>Example:</em> <code>Favorites KEYARGS "ctrl:NEW" "none:NEWTAB=findexisting"</code></p>             |
| MENUMARKERS     | /S   | _(no value)_                 | <p>If the generated list of favorites includes any submenus, the top-level buttons will display a glyph indicating a dropdown menu.</p><p><em>Example:</em> <code>Favorites MENUMARKERS</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| MOVETO          | /S   | _(no value)_                 | <p>Modifies the generated list of favorites, turning each item into a "move" button that will move selected files to the favorite folder.</p><p><em>Example:</em> <code>Favorites MOVETO</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| MULTIFUNC       | /O   | _(no value)_                 | <p>The generated list of favorites will be <a href="../../../customize/creating_your_own_buttons/editing_the_toolbar/multiple_function_buttons">multiple function buttons</a> (three-button buttons) - clicking them with the left mouse button will act as if <strong>OPENINLEFT</strong> were set, the right button will act as if <strong>OPENINRIGHT</strong> were set, and the middle mouse button will act as if <strong>NEW</strong> were set.</p><p><em>Example:</em> <code>Favorites MULTIFUNC</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
|                 |      | **tabs**                     | <p>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 <strong>NEWTAB</strong> argument.</p><p><em>Example:</em> <code>Favorites MULTIFUNC=tabs</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| NAME            | /K   | _\<name>_                    | <p>Specifies the name of the newly created favorite or alias. If a name is not provided, the name of the folder will be used by default.</p><p><em>Example:</em> <code>Favorites ADD=alias NAME=docs PATH "C:\Users\Jon\Documents"</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| NAMESONLY       | /S   | _(no value)_                 | <p>When listing Smart Favorites, each item in the list will only display its respective folder's name, not the full path. Full paths are displayed in tooltips instead.<br>(The <strong>NAMESONLY</strong> argument does not work with the normal Favorites list, since you are free to edit item labels in that as you wish. See the <strong>ADD=nameonly</strong> argument, above, if you wish to automate suppression of full paths when adding normal favorites.)</p><p><em>Example:</em> <code>Favorites SMART NAMESONLY</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| NEW             | /S   | _(no value)_                 | <p>Favorites selected from the list generated by this command will open in a new Lister instead of the current one.</p><p><em>Example:</em> <code>Favorites NEW</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| NEWTAB          | /O   | _(no value)_                 | <p>Favorites selected from the list generated by this command will open in a <a href="../../../basic_concepts/the_lister/tabs">new tab</a>.</p><p><em>Example:</em> <code>Favorites NEWTAB</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|                 |      | **deflister**                | <p>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.</p><p><em>Example:</em> <code>Favorites NEWTAB=deflister</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
|                 |      | **findexisting**             | <p>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.</p><p><em>Example:</em> <code>Favorites NEWTAB=findexisting</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|                 |      | **findinactive**             | <p>Like <strong>findexisting</strong>, 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.</p><p><em>Example:</em> <code>Favorites NEWTAB=findinactive</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|                 |      | **nofocus**                  | <p>New tabs opened by favorites selected from the list will not be brought to the front.</p><p><em>Example:</em> <code>Favorites NEWTAB=nofocus OPENINDUAL</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|                 |      | **tofront**                  | <p>If the folder was found in an existing tab, bring that tab to the front (only used with <strong>findexisting</strong>).</p><p><em>Example:</em> <code>Favorites NEWTAB=findexisting,tofront</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| NOLABELS        | /S   | _(no value)_                 | <p>The favorites list displayed by this command will not show any labels for the favorite folders. Only affects the top-level items; sub-menus will still display labels. Should be combined with <strong>SHOWICONS</strong>.</p><p><em>Example:</em> <code>Favorites NOLABELS SHOWICONS</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| NOOPENINTABS    | /S   | _(no value)_                 | <p>Do not add the <strong>Open in tabs</strong> command that is normally displayed at the bottom of the generated favorites list.</p><p><em>Example:</em> <code>Favorites NOOPENINTABS</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| OPENINDEST      | /S   | _(no value)_                 | <p>Favorites selected from the list will open in the destination file display or Lister.</p><p><em>Example:</em> <code>Favorites OPENINDEST</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| OPENINDUAL      | /S   | _(no value)_                 | <p>Favorites 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.</p><p><em>Example:</em> <code>Favorites OPENINDUAL</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| OPENINLEFT      | /S   | _(no value)_                 | <p>Favorites will open in the left-hand (or top) display of a dual-display Lister.</p><p><em>Example:</em> <code>Favorites KEYARGS none:OPENINLEFT ctrl:OPENINRIGHT</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| OPENINRIGHT     | /S   | _(no value)_                 | <p>Favorites will open in the right-hand (or bottom) display of a dual-display Lister.</p><p><em>Example:</em> <code>Favorites NEWTAB OPENINRIGHT</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| PATH            |      | _\<folder path>_             | <p>When used with the <strong>ADD</strong> argument, specifies the path to add as a favorite or alias. Without this, the current source folder will be used.</p><p>When used without the <strong>ADD</strong> argument, this modifies the dynamically generated list of favorite folders to only show the contents of a specified sub-branch of the favorites list. The branch path must be preceded with an asterisk. You can also use the <strong>BRANCH</strong> argument instead of this method - note that <strong>BRANCH</strong> does not require the asterisk in front of the branch path.</p><p>To filter the list by path rather than sub-branch, see the <strong>FILTER</strong> argument.</p><p><strong>PATH</strong> is the default argument for the <strong>Favorites</strong> command; you do not need to specify the <strong>PATH</strong> keyword itself.</p><p><em>Example:</em> <code>Favorites /desktop ADD</code><br><em>Example:</em> <code>Favorites *Projects</code> (equivalent to <code>Favorites BRANCH=Projects</code>)</p> |
| SHOWICONS       | /S   | _(no value)_                 | <p>The favorites list displayed by this command will display icons for the items within it. Note that the button that contains the <strong>Favorites</strong> command must also have its <strong>Show image</strong> option turned on.</p><p><em>Example:</em> <code>Favorites SHOWICONS</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| SMART           | /O   | _(no value)_                 | <p>Generates a dynamic list of <a href="../../../basic_concepts/the_lister/navigation/smartfavorites">SmartFavorites</a> instead of the regular Favorite list. The number of folders displayed in the list is specified on the <a href="../../../preferences/preferences_categories/frequently_used_paths/smartfavorites"><strong>SmartFavorites</strong></a> Preferences page.</p><p><em>Example:</em> <code>Favorites SMART</code></p><p>Add the <strong>NAMESONLY</strong> argument to show only folder names instead of full paths, and move the full paths into tooltips.</p><p><em>Example:</em> <code>Favorites SMART NAMESONLY</code></p>                                                                                                                                                                                                                                                                                                                                                                                                       |
|                 |      | _\<number of items>_         | <p>Display the specified number of SmartFavorites (overrides the number set in Preferences).</p><p><em>Example:</em> <code>Favorites SMART 20 SHOWICONS NEWTAB</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|                 |      | **clear**                    | <p>Clears the SmartFavorites list, the same as clicking the option to do so within the Preferences dialog.</p><p><em>Example:</em> <code>Favorites SMART=clear</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| USEQUALKEYS     | /S   | _(no value)_                 | <p>Activates pre-configured behaviour for the main qualifier keys - <strong>Control</strong> will open the favorite folder in the dual-display, <strong>Shift</strong> in a new Lister and <strong>Alt</strong> in a new tab.</p><p>This is equivalent to <code>Favorites KEYARGS ctrl:OPENINDUAL shift:NEW alt:NEWTAB</code>.</p><p><em>Example:</em> <code>Favorites USEQUALKEYS</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
