Skip to content

feat: reveal workspace paths in the system file manager#3070

Closed
YoungDan-hero wants to merge 1 commit into
esengine:main-v2from
YoungDan-hero:dev-2
Closed

feat: reveal workspace paths in the system file manager#3070
YoungDan-hero wants to merge 1 commit into
esengine:main-v2from
YoungDan-hero:dev-2

Conversation

@YoungDan-hero
Copy link
Copy Markdown
Contributor

@YoungDan-hero YoungDan-hero commented Jun 4, 2026

This PR addresses a desktop workflow gap where the file tree context menu could only add file or folder references to chat. During development, users also need to locate the selected item in the native file manager, such as Finder on macOS, File Explorer on Windows, or the default file manager on Linux.

The change adds a file tree context menu action for both files and folders. The frontend displays platform-aware localized labels, calls the existing RevealWorkspacePath bridge, reports failures through the existing notice flow, and clears stale browser text selection when opening the context menu.

The backend now keeps App.RevealWorkspacePath focused on workspace path validation and delegates platform command construction to a dedicated helper. macOS uses open -R, Windows uses explorer /select,, and Linux opens the parent folder for files or the folder itself for directories. Cross-platform command tests were added to reduce regression risk.

Closes #3035

This PR addresses a desktop workflow gap where the file tree context menu could only add file or folder references to chat. During development, users also need to locate the selected item in the native file manager, such as Finder on macOS, File Explorer on Windows, or the default file manager on Linux.
The change adds a file tree context menu action for both files and folders. The frontend displays platform-aware localized labels, calls the existing RevealWorkspacePath bridge, reports failures through the existing notice flow, and clears stale browser text selection when opening the context menu.
The backend now keeps App.RevealWorkspacePath focused on workspace path validation and delegates platform command construction to a dedicated helper. macOS uses open -R, Windows uses explorer /select,, and Linux opens the parent folder for files or the folder itself for directories. Cross-platform command tests were added to reduce regression risk.
@github-actions github-actions Bot added the v2 Go rewrite (1.x) — main-v2 branch, active development label Jun 4, 2026
@esengine
Copy link
Copy Markdown
Owner

esengine commented Jun 5, 2026

Thanks! This already landed on main-v2 along the way — there's now a RevealWorkspacePath/RevealPath backend plus a reveal button in the workspace tree, so the same capability is in. Closing as already-implemented; really appreciate the contribution 🙏

@esengine esengine closed this Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: 桌面版文件列表中的文件夹 希望增加右键"在资源管理器中打开" 选项

2 participants