Files官网:https://files.community/
Github仓库:https://github.com/files-community/files
使用文档:https://files.community/docs/configuring/configure-win-e
AutoHotkey官网:https://www.autohotkey.com/
AutoHotkey中文文档:https://www.zhihu.com/question/36235561/answer/1991614024
AutoHotkey教程:https://www.autoahk.com/

配置快捷键

下载并安装一个AutoHotkey,然后在其安装目录下新建一个files.ahk文件,内容如下:

  1. ; Win + E
  2. #e::
  3. FilesTitle := "Files ahk_class ApplicationFrameWindow ahk_exe ApplicationFrameHost.exe"
  4. FilesLocation := USERPROFILE . "\AppData\Local\Microsoft\WindowsApps\files.exe"
  5. if WinExist(FilesTitle) {
  6. WinActivate % FilesTitle ; Set focus
  7. SendInput ^t ; Send CTRL + t shortcut to open a new tab
  8. } else {
  9. Run % FilesLocation ; Start Files
  10. WinWait % FilesTitle ; Wait for it ...
  11. WinActivate % FilesTitle ; Set focus
  12. }
  13. return

之后双击打开这个文件就可以使用快捷键Win+E了

参考

  1. autohotkey一般用来做什么的? - 让我想一想的回答 - 知乎
  2. Configuring Files to launch with the Win + E shortcut