Skip to content

Windows: Use native Shell API to support third-party file managers for file reveal#671

Open
yasinkaraaslan wants to merge 1 commit into
focus-editor:mainfrom
yasinkaraaslan:main
Open

Windows: Use native Shell API to support third-party file managers for file reveal#671
yasinkaraaslan wants to merge 1 commit into
focus-editor:mainfrom
yasinkaraaslan:main

Conversation

@yasinkaraaslan

@yasinkaraaslan yasinkaraaslan commented Jul 7, 2026

Copy link
Copy Markdown

The current implementation hardcodes explorer.exe when opening or revealing files. This is a bit of a pain for anyone using custom file managers (like Filepilot or Directory Opus), since it completely bypasses their default OS settings and forces standard Windows Explorer to open.

This PR fixes that by switching to the native Windows Shell APIs:

We now use ShellExecuteW for standard folder opening.
We use SHOpenFolderAndSelectItems when we specifically need to highlight or reveal a file.

(Also, Windows API handles both '/' and '\' internally for these shell calls so I removed a call to path_overwrite_seperators)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant