Skip to content
dsh.fish
Bundle

dsh-files-panel

Community DSH plugin: right-side workspace file tree, markdown preview, image preview, highlighted source. Does not patch DSH core.

Source
aa2246740
License
Apache-2.0
Updated
Updated 4 days ago

Readme

# dsh-files-panel

[English](README.en.md)

会话标题栏最右边多一个图标,挨着 Session log。点开是当前工作区的文件树:Markdown 和图片直接预览,源码带高亮。

## 安装

```sh
git clone https://github.com/aa2246740/dsh-files-panel.git
dsh plugin --profile web add file:./dsh-files-panel
```

`file:` 前缀留着,peer 依赖要从 profile 里解析。装完重启 `dsh web`。

进一个已经开过的会话,点最右边那个图标。空白页没有标题栏。

![点标题栏图标打开文件栏,再点一个文件](docs/screenshots/05-open-and-open-file.gif)

![文件栏关闭,标题栏最右侧能看到文件栏图标](docs/screenshots/01-header-icon-closed.png)

![右侧打开工作区文件树](docs/screenshots/02-panel-open-tree.png)

![点击 Markdown 文件后的预览](docs/screenshots/03-markdown-preview.png)

![点击 TypeScript 源文件后的高亮](docs/screenshots/04-source-highlight.png)

## 卸载

```sh
dsh plugin --profile web remove dsh-files-panel
```

## 许可

[Apache-2.0](LICENSE)

Install

dsh plugin --profile web add github:aa2246740/dsh-files-panel

Profile: web

  • This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source