# 单窗口模式

DOpus 没有内置的单窗口模式，但可以通过一些配置来间接实现：

* 资源管理器替换

  勾选 `DOpus 启动/资源管理器替换/在新标签中打开外部文件夹`：

  ![](/files/5feNlGvUjRRwdh5VWHeF)
* Win+E 热键

  勾选 `DOpus 启动/从 Win+E 快捷键/将上一个活动窗口前置`：

  ![](/files/ubeYGc8nGmCeKGhsFf4K)

  也可设置 `运行命令` 为 `Go /mycomputer NEWTAB=findexisting,tofront` 来在已有窗口中打开我的电脑。

  注意，Windows 10 以下该功能受资源管理器替换的配置控制，不需要单独设置。
* 桌面双击

  勾选 `DOpus 启动/从桌面/将上一个活动窗口前置`：

  ![](/files/rWxsd4SIqeEem0WtXrxB)
* 托盘图标双击

  勾选 `DOpus 启动/从任务栏/将上一个活动窗口前置`：

  ![](/files/5nYiL4FnsQrIePgLl8VN)

另外，以下操作默认也会打开新窗口，但一般不会触发，可根据需要保留或关闭：

* Win+Shift+E 热键

  可在自定义窗口中禁用：

  ![](/files/YGBZ66rg89F43AeajlP3)
* 在文件列表中对文件夹 Shift+双击

  可在[文件类型编辑器](https://chaoses-ib.gitbook.io/directory-opus/wen-jian-liu-lan/duo-wen-jian-jia/pages/E6zU86CWsv49eP3aIGMC#文件类型)中删除：

  ![](/files/fai2SW57v2jstDrHHnep)
* 在文件窗口中 Ctrl+E

  可在自定义窗口中禁用：

  ![](/files/hoZEQr3esYB39UptaUMr)
* 菜单工具栏/文件/打开新窗口

  可开启自定义模式，从工具栏菜单中删除。
* 启动 DOpus（运行 `dopus.exe`）

  虽然无法直接禁止 `dopus.exe` 创建新窗口，但可以将指向 `dopus.exe` 的快捷方式的目标改为：

  * 在已有窗口中打开我的电脑：`"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /acmd Go /mycomputer NEWTAB=findexisting,tofront`
  * 激活最近使用的窗口：`"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /acmd Go LASTACTIVELISTER NEW`

  对于任务栏来说，可以先将 DOpus 固定到任务栏，再通过右键菜单修改快捷方式，或者直接定位到 `%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Directory Opus.lnk` 进行修改：

  ![](/files/n6oov8FxrE4GXsf0ZnWd) ![](/files/2eU5CdsfdY52PziwpPyK)

<details>

<summary>v12</summary>

默认配置下，新文件窗口的产生有以下几个来源：

* 资源管理器替换
* 双击桌面
* 双击托盘图标
* 热键
  * 全局
    * Win+E
    * Win+Shift+E 打开新窗口
  * 文件列表
    * Shift+双击 在新窗口中打开选中文件夹
  * 菜单工具栏
    * Ctrl+E 打开新窗口
* 工具栏
  * 菜单/文件/打开新窗口
* 启动 DOpus（运行 `dopus.exe`）

要实现单窗口模式，需要进行以下设置：

* 资源管理器替换

  勾选 `DOpus 启动/资源管理器替换/在新标签中打开外部文件夹`。
* 双击桌面

  选择 `DOpus 启动/从桌面/激活最近使用的窗口`。
* 双击托盘图标

  选择 `DOpus 启动/从任务栏/激活最近使用的窗口`。
* 热键
  * Win+E
    * Windows 10 及以上：选择 `DOpus 启动/从 Win+E 热键/激活最近使用的窗口`，或设置 `运行命令` 为 `Go /mycomputer NEWTAB=findexisting,tofront`（打开我的电脑）。
    * Windows 10 以下：受资源管理器替换的配置控制，不需要单独设置。
  * 其它热键

    不使用、禁用或根据自己的需要修改。
* 工具栏

  不使用、删除或根据自己的需要修改。
* 启动 DOpus（可忽略）

  虽然无法直接禁止 `dopus.exe` 创建新窗口，但可以将指向 `dopus.exe` 的快捷方式的目标改为：

  * 在已有窗口中打开我的电脑：`"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /acmd Go /mycomputer NEWTAB=findexisting,tofront`
  * 激活最近使用的窗口：`"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /acmd Go LASTACTIVELISTER NEW`

  对于任务栏来说，可以先将 DOpus 固定到任务栏，再通过右键菜单修改快捷方式，或者直接定位到 `%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Directory Opus.lnk` 进行修改：

  ![](/files/n6oov8FxrE4GXsf0ZnWd) ![](/files/2eU5CdsfdY52PziwpPyK)

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chaoses-ib.gitbook.io/directory-opus/wen-jian-liu-lan/duo-wen-jian-jia/dan-chuang-kou-mo-shi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
