- ホーム
- プラグイン
- セッションとメッセージ
- dsh-session-folders
dsh-session-folders
fjdksl666/dsh-session-folders
Collects unused sessions into collapsible folders at the bottom of the sidebar; sessions inside keep the native row time, status dot and hover actions. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
インストール
dsh plugin --profile web add github:fjdksl666/dsh-session-foldersREADME
会话夹子 · dsh-session-folders
把不常用的会话收进侧栏最底下的文件夹,让侧栏只剩你正在用的那几个。
功能
- 文件夹:默认自带一个「不常用」夹子,可以再新建;会话收进夹子后从主列表消失,点开夹子才出现。
- 原生手感:夹子里的会话行是宿主自己的行,最近使用时间、状态点、悬停时那排按钮(置顶、归档等)都由 DSH 自己画,用起来跟主列表一致。
- 整理:单击收起/展开,双击夹子名改名,右键会话选「移到别的夹子…」(多夹子时是子菜单),也可以直接点会话行上的夹子按钮。
- 外观:夹子标题加粗、主色,展开时上沿有一道从两侧往下淡出的高光线,像抽屉被拉开。
- 持久化:全部状态存在
~/.dsh/session-folders.json,换机器时把文件带走即可。
安装
在 DSH 侧栏打开 插件 → 发现,添加索引源:
https://raw.githubusercontent.com/Fjdksl666/dsh-plugins-index/main/index.json
然后在列表里找到「会话夹子」,点安装并重启 DSH。
想装某个具体提交时,安装目标写 git+https://github.com/Fjdksl666/dsh-session-folders.git#<commit>。
兼容性
- DSH Desktop 0.2.2 及以上(需要
contextMenus、sidebar.session.row.trailing这两个扩展点)。 - 只用客户端 + 一条 host 路由,不依赖任何第三方包。
说明
夹子里的会话行是把宿主的行复制一份再接管交互的,所以宿主改行结构时可能失效。失效时夹子仍能收起/展开,只是行会退化成只有标题的简版——升级 DSH 后如果发现样式不对,提个 issue。
许可
MIT
English
A DSH plugin that folds unused sessions into folders at the bottom of the sidebar. Sessions inside a folder keep the host's own row rendering (relative time, status dots, hover actions), so they still look and behave natively.
Install by adding the index URL above in Plugins → Discover, then install and restart DSH.