---
title: "我一直在 Claude 改文件时切去编辑器，于是做了一个直接在 Claude Code 里面的文件树模组"
url: "https://claudemods.dev/zh-cn/builds/i-kept-alt-tabbing-to-my-editor-every-time-claude-touched-a--57d5b9"
source: "https://www.reddit.com/r/ClaudeCode/comments/1x11bkn/i_kept_alttabbing_to_my_editor_every_time_claude"
source_type: "reddit"
author: "Ape1108"
author_handle: "Ape1108"
stars: 0
category: "工具与集成"
categories: ["tools"]
tags: ["file-explorer", "keybindings", "plugin", "preview", "tree"]
permission_level: null
scan_complete: false
added: "2026-10-09T00:06:38.901Z"
updated: "2026-10-08T20:08:16.000Z"
locale: "zh-cn"
content_locale: "zh-cn"
---

# 我一直在 Claude 改文件时切去编辑器，于是做了一个直接在 Claude Code 里面的文件树模组

一个 Claude Code 插件，在对话旁停靠项目文件树，每行显示 git 状态，并标示本次会话的写入。支持文件预览（Markdown、CSV、语法高亮的代码）、筛选、搜索与 @提及插入。只读、不发出网络请求，可通过作者的市场以 /plugin install 安装。

## Description

有件事一直困扰我：Claude 说“更新了 6 个文件”，然后我要么盲目相信，要么得切到 bash 模式，或另开一个终端或窗口来翻看那些文件。所以我做了 /tree。它是一个模组（可以在 Claude Code 内绘制界面的新型插件），会在对话旁边以文件树打开你的项目。

它的功能：

- 每一行都有 git 状态（M、A、?、ignored 等）。另外，本次会话中 Claude 写入的文件旁会有 ✻，让你一眼看出实际改了什么。
- 预览你当前所在的文件：Markdown 渲染、CSV 转为表格、代码有语法着色。用方向键移动时预览会跟着变；按 p 可固定预览，并在提示中加入所选文件的 @提及。
- 现在只需按一个键就能指向正确的文件：f 按名称筛选树，g 搜索预览文件的内容。
- /tree src/cli.ts 会直接打开到该文件。
- 会记住每个项目你打开过哪些文件夹。

为了最佳体验，请在全屏渲染模式下使用 Claude Code（/tui fullscreen）。此时面板停靠在对话旁，支持完整的鼠标点击与键盘操作。（若未使用全屏渲染，面板会显示在提示栏上方，只能用键盘操作。）

它刻意设计为只读：从不编辑文件、不发出网络请求，唯一执行的命令是只读的 git。

安装（需要 Claude Code 2.1.287 以上）：
/plugin install file-explorer --marketplace floheissler/cc-file-explorer

仓库：https://github.com/floheissler/cc-file-explorer（MIT，免费）

目前是 v0.1。CI 在 Linux、macOS 和 Windows 上运行，我在 WSL 中每天使用。欢迎反馈！

submitted by /u/Ape1108 [link] [comments]

## Original README

Something that kept bugging me: Claude says "updated 6 files" and then I either trust it blindly or had to use bash mode or a second standalone terminal/pane to skim the files. So I built /tree. It's a mod (the new plugin type that can draw inside Claude Code) that opens your project as a file tree right next to the conversation. What it does: Git status on every row (M, A, ?, ignored...), plus a ✻ on files Claude wrote this session, so you can see at a glance what actually changed Preview of whatever file you're on: Markdown rendered, CSV as tables, code with syntax colors. The preview follows as you arrow through the tree, p pins it a drops an @mention of the selected file into your prompt. Pointing Claude at the right file is one key now f filters the tree by name, g searches inside the previewed file /tree src/cli.ts opens straight onto a file It remembers which folders you had open, per project For the best experience use claude code in fullscreen rendering (/tui fullscreen). It is docked next to the chat, full mouse click and keyboard support. (Without fullscreen rendering it opens above the prompt, keyboard only). It's read-only on purpose: never edits a file, no network calls, and the only thing it runs is git, read-only. Install (needs Claude Code 2.1.287+): /plugin install file-explorer --marketplace floheissler/cc-file-explorer Repo: https://github.com/floheissler/cc-file-explorer (MIT, free) It's v0.1. CI runs on Linux, macOS and Windows, and I use it daily in WSL. Love to hear your feedback! submitted by /u/Ape1108 [link] [comments]
