Double Commander

2.8. Built-in file viewer

Content

1. Introduction
2. Main menu
2.1. "File"
2.2. "Edit"
2.3. "View"
2.4. "Plugins"
2.5. "Encoding"
2.6. "Image"
2.7. "About"
3. Toolbar
4. Status bar
5. Preview
6. Copying/moving files
7. Quick view
8. Additional settings

1. Introduction

The built-in viewer is designed to view files of any size in text, hexadecimal or binary format and image files.

Built-in file viewer

The selected text will be automatically copied to the clipboard, to disable we can use the <AutoCopy> parameter.

By default, the viewer (internal command cm_View) call is assigned to the F3 key. If several files are selected, the first selected file will be opened and we can switch these files using the Previous file and Next file commands (otherwise, these commands will load files in the current directory). To open the file under the cursor anyway, we can use Shift+F3. We can change hotkeys in the Keys > Hot Keys settings section.

Supported image formats: BMP, CUR, GIF, ICNS, ICO, JPEG, PNG, PNM (PBM, PGM and PPM), PSD, SVG/SVGZ, TIFF, XPM. In addition, if the required libraries are available:

Note: In Windows, libraries must be located near the Double Commander executable file or in the PATH.

Double Commander supports Windows Imaging Component (Windows Vista and newer): the Windows Imaging Component (WIC) provides an extensible framework for working with images. WIC includes several built-in codecs (BMP, DDS, GIF, ICO, JPEG, JPEG XR, PNG and TIFF), additionally available external codecs for free and proprietary RAW image formats, HEIF/HEIC, WebP. Double Commander will skip codecs for BMP, GIF, ICO, JPEG, PNG and TIFF, because these formats are already supported.

The built-in viewer supports saving to the following image formats: BMP, ICO, JPEG (we can choose the quality from 1 to 100; 80 by default, see <JpegQuality>), PNG (Double Commander will use the same color depth as in the original image) and PNM (Double Commander will use binary formats, the color depth will be set automatically: 1, 8 or 24 bits per pixel).

Note: When modifying an image, we must save all changes with the Save or Save As commands: Double Commander does not check the status of the file (changed or not) when closing the viewer window or when switching to another file.

We can assign or change hotkeys for commands available in the viewer in the Keys > Hot Keys settings section (switch to the Viewer category). Hotkeys can be set separately for text mode and image viewing mode.

2. Main menu

The appearance and content of the main menu depends on the viewing mode: text, image or WLX plugin.

2.1. "File"

Items Previous and Next are used to load the previous or next file in the directory. If several files are selected, the commands will load these files. The sort order in the file panel is used.

Items Save and Save As... are available only when viewing images.

Print... – opens a system dialog for sending a file for printing. Printing is only available when viewed with plugins that support printing files.

Print setup... – opens a dialog for setting the print borders (left, right, top and bottom page margins).

Reload – Double Commander will forcibly reread the file without closing the viewer window. This is convenient if the file has been modified by an external program.

Auto Reload – only for text mode: if enabled, Double Commander will check the file size every 2 seconds and if it changes, reread the file and scroll its contents to the end. This is convenient for viewing constantly updated log files. This mode applies only to the current file and is disabled when switching to another file or when closing the viewer window. If enabled, Double Commander will show an asterisk "*" in the status bar before the file name.

Exit – Close the viewer window.

2.2. "Edit"

The menu contains commands for selecting and copying text, as well as commands for searching through the contents of the file being viewed: Find, Find next and Find previous.

Search options:

2.3. "View"

This menu is for switching the viewing mode and contains several additional options.

Preview – Show or hide the preview panel.

The program automatically selects the appropriate file viewing mode, the following items allow to switch it forcibly:

Plugins have priority over other supported view modes.

Wrap text – enables or disables wrapping lines that do not fit in the window (by word boundaries).

Show text cursor – enables the display of a blinking text cursor.

2.4. "Plugins"

The menu contains a list of all added and enabled WLX plugins. The first part of the menu will contain plugins that are suitable for the current file (Double Commander checks the detection string), all others will be listed in the second part.

Without sorting, the same order is used in which the plugins were added in the corresponding settings section.

2.5. "Encoding"

When viewing files in text modes: menu with a list of available text encodings, auto-detection is enabled by default.

When using plugins, this menu includes only three items:

2.6. "Image"

The Image menu will not be available when viewing GIF files.

Stretch – resizes the image so it fills the viewer window (the aspect ratio will be saved automatically).

Stretch only large – resizes the image only if it is larger than the current window size (the aspect ratio will be saved automatically).

Center – The image will be displayed in the center of the viewer window instead of the upper left corner.

Show transparency – enables the use of a checkerboard pattern as a background for transparent parts of the image.

The Rotate submenu includes several similar actions:

Zoom In and Zoom Out – commands to change the image scale.

Full Screen – switches the window to full-screen mode (the contents of the window without the operating system's typical window-framing interface). This mode is available not only when viewing images, just use hotkeys (Alt+Enter by default).

The Screenshot submenu – creating a screenshot of the desktop, immediately or with a delay (3 or 5 seconds).

When using plugins, this menu includes only three items: Stretch, Stretch only large and Center.

2.7. "About"

Just a viewer name.

3. Toolbar

Several commands of the internal viewer and additional tools, collected in the toolbar. Only when viewing images.

Toolbar

Reload current file – Double Commander will forcibly reread the file without closing the viewer window. This is convenient if the file has been modified by an external program.

Buttons Load Previous File and Load Next File are used to load the previous or next file in the directory. The sort order in the file panel is used.

Copy File – see Copying/moving files.

Move File – see Copying/moving files.

Delete File – will delete the file being viewed with a confirmation request.

Zoom In and Zoom Out – commands to change the image scale.

Rotate -90 degrees – rotates the image by 90 degrees to the left around its center.

Rotate +90 degrees – rotates the image by 90 degrees to the right around its center.

Mirror – The Mirror Horizontally command: reverses the image horizontally, that is, from left to right.

The next group is for GIF animation only:

The next group of buttons is related to selection:

The next group of buttons is related to drawing:

Resize – The image resizing tool allows to specify the width and height in pixels (the aspect ratio will be saved automatically).

Full Screen – switches the window to full-screen mode (the contents of the window without the operating system's typical window-framing interface) and back. This mode is available not only when viewing images, just use hotkeys (Alt+Enter by default).

When the window is expanded to full screen, an additional Slide Show button will become available: we can enable automatic loading the next image in the current directory and set the file display time (from 1 to 25 seconds).

4. Status bar

The appearance and content of the status bar depends on the viewing mode: text, image or WLX plugin.

At the beginning of the status bar, the number of the open file and the total number of files in the current directory are displayed.

Text: position in the file content (in bytes and percentages), file size and text encoding.

Status bar: text

Image: current resolution (in pixels and percentages), real file resolution and selection size (when using the selection tool).

Status bar: image

WLX plugin: plugin name and encoding.

Status bar: WLX plugin

At the ending of the status bar, the full name of the file being viewed is displayed.

5. Preview

Panel in the left part of the window, catalog files are displayed as thumbnails (with the file name below the thumbnail). It looks like the thumbnail mode in the file panel.

Preview

The sort order in the file panel is used. The file with which the viewer was launched will always be the first in the list.

The preview panel can be expanded to display a list of thumbnails in multiple columns.

Separate toolbar with several frequently used functions: Reload current file, Load Previous File, Load Next File, Copy File, Delete File and Move File, see description of similar buttons above.

6. Copying/moving files

The viewer has the ability to copy or move the viewed file using hotkeys or buttons on the toolbar or on the preview panel (internal viewer commands cm_CopyFile and cm_MoveFile). We can specify up to 5 directories and switch between them:

Copying/moving files

This is convenient if we need to put the viewed files into different directories or make an additional copy.

7. Quick view

Additional file viewing mode (Ctrl+Q by default): instead of a separate window, the contents of the file under the cursor will be shown in the opposite (inactive) file panel. As we navigate to next items, displayed content is updated, this allows to view the contents of files simply by moving the cursor in the file panel.

Quick view can be disabled by pressing Ctrl+Q again, also it will be disabled when switching any panel (active or inactive) to another tab.

"View" actions added in the file association settings are ignored, except for applications that are launched with the {!DC-VIEWER} macro.

Not all viewer commands can work in this mode, for example, commands to load the previous or next file in the directory (P and N by default).

Right-click on the status bar brings up a menu that contains several submenus (depending on the current mode):

(See description above.)

Some interface elements may be hidden (for example, when viewing images in the "Graphics" mode, Double Commander will hide the toolbar). There is no general rule or recommendation for plugins, the decision is made by the plugin author.

8. Additional settings

See the description of the Double Commander settings sections: Tools > Viewer and Colors (the Viewer category). There are several parameters that can only be changed manually in the doublecmd.xml configuration file.


Valid HTML 4.0 Transitional CSS Valid!