Customizing Control Bar Buttons

Overview

The Control Bar is divided into two sections: * Left (File-level): Integration with external applications (e.g., "Open with...", "Reveal in Explorer"). These are configurable in Settings - Controls. * Right (Preview-level): Viewport controls (e.g., rotate, mute, zoom).

This guide focuses on extending the Left section.

Configuration

  1. Navigate to Settings - Controls.
  2. Input the target extension (e.g., png) or a Special Token.
  3. Click + to select the target executable (.exe).
  4. (Optional) Click the Edit icon to define CLI arguments.

Advanced Usage: CLI Parameters

When calling external tools, Seer uses placeholders to pass file information.

Placeholder: ${input_file}

This token is dynamically replaced with the absolute path of the currently previewed file.

Example: Custom 7z Decompression

To trigger 7z.exe directly from the Control Bar: 1. Set extension to: zip 2. Select path: C:\Path\To\7z.exe 3. Set parameters: x "${input_file}" -r -y -o"C:\Output\Path\"

Parameter Breakdown: * x: Extract with full paths. * "${input_file}": Mandatory placeholder for the target file. * -r: Recursive processing. * -y: Auto-confirm (overwrite). * -o: Output directory.

Warning: Ensure all paths are absolute. If paths contain spaces, wrap them in double quotes (e.g., "${input_file}").

Special Target Tokens

Use these tokens in the extension field for broader matching:

Token Description
${type_folder} Matches directories.
${type_file} Matches all files (including those without extensions).
${type_all} Matches everything (files & folders).

Note: Tokens are case-insensitive and can be combined with extensions via spaces (e.g., png jpg ${type_folder}).