Skip to content

2. How to customize control bar

Seer edited this page Jan 2, 2023 · 1 revision

What

First, this is the control bar. Generally speaking, the left side is the file-level control buttons, such as using the default program to open the file, locating the file path to the explorer, etc. All these buttons can be hidden in the Settings - Controls.

The right side is the preview level, which is mainly used to control the display content, such as rotation, mute, restore size, etc.

What this document talks about is the leftist.


How

  1. Open the Settings window and enter a extension.
  2. Click the + button on the right to select the executable program path that can open this file.
  3. Click OK. At this time, to preview the file with the extension, there will be one more button in the control bar. It's amazing.

Notes

Before customizing it, please make sure you know what you are doing and what this function is for.

Next is the second example:

  1. Enter the suffix name: zip

  2. Click the + button next to it to select the execution file path

  3. Click the edit button next to + to modify the calling parameters

  4. In this example, the program will call 7z.exe, replace the placeholder with the full path of the preview file, followed by other parameters, the parameter in this example is x "${input_file}" -r -y -o"C:\Users\ corey\Downloads\"

    • Remember to change the name in the path when copying the above parameters, because your name is not Corey.
    • x: decompression
    • "${input_file}": a placeholder
    • -r: recursive, ensuring that the sub-files of the folder are also decompressed
    • -y: ensures that all queries are defaulted to Yes. After adding this option, if the target directory has the same name, it will be overwritten
    • -o: the output path
    • "C:\Users\corey\Downloads\": the save path after decompression.
  5. Click OK

  6. Click the fresh button in Control bar, and the program will call 7z.exe to decompress the zip file to the path just filled in the parameters, which is "C:\Users\corey\Downloads\". Amazing~