Skip to content

[Feature] Windows平台支持【复制路径】和【在终端打开】这两个系统指令 #424

@Sddft97

Description

@Sddft97

🚀 功能描述

Windows平台支持【复制路径】和【在终端打开】这两个系统指令

💡 动机

当前【复制路径】和【在终端打开】两个系统指令仅支持 macOS 的 Finder,需要在 Windows 系统的文件管理器(explorer.exe)中也支持这两个功能,这对于常用Windows的开发者(也许不仅仅是开发者)比较友好。

🎯 解决方案

利用已有的原生模块 API getExplorerFolderPath(hwnd) 获取 Windows Explorer 当前窗口的文件夹路径。该 API 通过 COM IShellWindows 接口查询指定窗口句柄对应的 Explorer 文件夹路径。

🔄 替代方案

📋 附加信息

utools目前实现了这个功能,在Windows上也正常运行。

Image

✅ 检查清单

  • 我已经搜索过现有的 Issues,确认没有重复
  • 我已经阅读了文档
  • 我愿意提交 PR 来实现这个功能

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions