Quantcast
Channel: voidtools forum
Viewing all articles
Browse latest Browse all 1719

Everything 1.5 Alpha • Re: Custom Open Commands

$
0
0
I'm curious on custom_open_command syntax/parameters to open sidecar files. Put another way, I'd like to swap the extension of the filename sent to the default program.

Example, I have C:\file.mp4, C:\file.jpg, C:\file.json. With C:\file.mp4 selected in results window, I'd like to:

Shift+Enter = open file.jpg with default viewer (i_view32.exe)
CTRL+Enter = open file.json with default app.

Part of the goal is then hiding .jpg/.json in filters to reduce clutter. I tried using

Edit: I'd hoped %~n1.jpg might work as it does in windows batch files, but no.
$exec("c:\Program Files\IrfanView\i_view64.exe" "%~n1.jpg")

Statistics: Posted by mvdeckard — Sun Sep 08, 2024 11:26 pm



Viewing all articles
Browse latest Browse all 1719

Trending Articles