---
title: "Claude がファイルを触るたびにエディタへ Alt-Tab していたので、Claude Code 内に収まるファイルツリー Mod を作りました"
url: "https://claudemods.dev/ja/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: "ja"
content_locale: "ja"
---

# Claude がファイルを触るたびにエディタへ Alt-Tab していたので、Claude Code 内に収まるファイルツリー Mod を作りました

Claude Code のプラグインで、会話の横にプロジェクトのファイルツリーをドッキング表示します。各行に git ステータス、このセッションでの書き込みマーカー、ファイルプレビュー（Markdown、CSV、構文ハイライト付きのコード）、フィルター、検索、@メンション挿入を備えます。読み取り専用で、ネットワーク呼び出しは行わず、作者のマーケットプレイスから /plugin install でインストールできます。

## Description

ずっと気になっていたことがあります。Claude が「6 ファイルを更新しました」と言っても、そのまま信じるか、bash モードや別のターミナル・ペインを使ってファイルを確認し直すしかありませんでした。そこで作ったのが /tree です。Claude Code 内に描画できる新しいプラグイン形式「Mod」で、会話の横にプロジェクトをファイルツリーとして開きます。

主な機能：

- 各行に git ステータス（M、A、?、ignored など）を表示。さらに、このセッションで Claude が書き込んだファイルには ✻ を付けるので、実際に何が変わったかを一目で確認できます。
- 選択中のファイルをプレビュー：Markdown はレンダリング、CSV は表、コードは構文色付きで表示します。矢印キーでツリーを移動するとプレビューも追従し、p でプレビューを固定して、選択中のファイルへの @メンションをプロンプトに挿入できます。
- 正しいファイルを Claude に指示するのも 1 キーで完了：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]
