sumatrapdf icon indicating copy to clipboard operation
sumatrapdf copied to clipboard

Don't force Windows Explorer in CmdShowInFolder

Open eugenesvk opened this issue 4 months ago • 3 comments

Is your feature request related to a problem? Please describe. CmdShowInFolder force-opens Windows Explorer, which I don't use instead of opening my default folder handler file explorer

Describe the solution you'd like Use the user default file explorer to open a config file location

Describe alternatives you've considered n/a

Additional context The "select target" might be challenging to do with arbitrary file explorers, but maybe you could have a custom command that accepts arguments so users could simply craft whatever path/to/my/file-manager.exe /go-select-file %1 themselves to replicate the behavior

eugenesvk avatar Sep 12 '25 12:09 eugenesvk

you should be able to add your own externalviewer command for show file in X.eXe it's the keyway to open CHM or Acrobat or any other app with current page that I can use for scan/parse a file or convert X to Y etc.

GitHubRulesOK avatar Sep 12 '25 12:09 GitHubRulesOK

CmdViewWithExternalViewer is marked as deprecated, which command did you mean?

But I've tested and found that CmdOpenWithExplorer seems to work just fine, and it also highlights the file in my file manager! So while I think CmdShowInFolder still shouldn't force WinExplorer, it's not an issue for me as I've replaced it with the other command. Thanks for the tip

eugenesvk avatar Sep 12 '25 13:09 eugenesvk

you will need to read the manual https://www.sumatrapdfreader.org/docs/Customize-external-viewers

ver 3.6+:

ExternalViewers [
  [
    CommandLine = xyz explorer %d
    Name = open in %xyz folder
    Filter =
    Key = x
  ]
]

GitHubRulesOK avatar Sep 12 '25 13:09 GitHubRulesOK