Selecting files

From TotalcmdWiki
Revision as of 23:13, 29 October 2005 by Sheepdog (talk | contribs)
Jump to: navigation, search

Selecting files

To select files, simply click on them with your mouse or move to them with the cursor keys and press [insert] or [space bar]. If you have chosen to use the right mouse button in the configuration dialog, your left mouse button just moves the cursor. You have to use the right mouse button for selecting items.

If you select a directory using the space bar, the total amount of space used by this directory is shown.

Select multiple consecutive files

Click on the first file to be selected with the left mouse button, press and hold down the [Shift] key and click on the last file you want to select.

With the right mouse button selected in the configuration dialog, you can click and drag over the files you want to select without using the [Shift]key.

With the keyboard you can select files with [Shift] + [Up/Down] keys. To select (or deselect if they are already selected) all files from cursor position to the first/last file you may use [Shift]+[Home/End].


Select multiple not consecutive files

Click on the first file to be selected with the left mouse button, press and hold down the [Ctrl] key and click on the next file you want to select. Continue until all desired files are selected. If you accidently select a file you can deselect it by [Ctrl] Clicking once again on this file.


With the right mouse button selected in the configuration dialog, you do not need to use the [Ctrl] key. Rightclick on the files you want to select and the selection will remain if you select other files. To deselect an accidently selected file just click again on the file.

With keyboard you may navigate with the cursor keys and select the files by holding the [Shift] key while moving off the file with [Up/down]. You may also press [insert] or [space bar] to select or deselect the files.

Advanced file selection

There are a few advanced commads to select files.

Select / unselect files of special types

Press the + (or -) key of the numerical block on your keyboard or select one of the selection options (Select/Unselect group) from the menu Mark. Then type the desired file type (for example *.txt). You can also specify multiple file types, and even file types, which should not be selected! These must be separated by the pipe symbol |. This symbol is used because it isn't a valid character for file names.

Example 1: w*.*|*.bak *.old selects all files, which start with w and do not end with .bak or .old. Example 2: |*.exe selects all files except for programs.

Alternatively, you can select a predefined filter, which can be defined in this dialog box through the 'define' button. This filter allows the same options as the search function!

New: You can now also use regular expressions. They need to be started with a "<" character, to distinguish them from normal search strings.

Select all / no files

Press [Ctrl] and the + (or -) key on the numerical block of your keyboard or choose Select all/Unselect all from the menu Mark You can also use [Ctrl]+[A] to select all files.

Select all files of the same type

To select all files of the same type (i.e. same extension) you can press [Alt]+[Num+]. For deselection you have to use [Alt]+[Num-]


Invert selection

With [Num*] you will select all files in the source directory which were not selected and deselect the previously selected files. This is especially useful after comparing directories.

Restore Selection

Restores the selection which was active before the last file operation. Press the / key (divide) on the numerical block of your keyboard.


Save selection

Saves the current selection internally. It can be restored with the next menu item. On every file operation, the current selection is saved automatically.


Save selection to file

Saves the current selection to a plain text file.

Load selection from file

Restores the selection from a plain text file.


Special Setting

Space Bar