ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
Reddit 貼文 · 發布者 IT-BAER

Claude Mod:為 Claude Code 打造的 VS Code 風格檔案總管面板

一位 Reddit 使用者展示了 Claude Code 外掛:加入具備 git 狀態色彩、搜尋、檔案預覽與編輯功能的 VS Code 風格檔案總管面板。包含 `/plugin marketplace` 安裝指令與 GitHub 儲存庫,僅限 Windows,並說明已知限制。

已翻譯

關於這個 mod

這個外掛會開啟一個面板,顯示工作目錄的資料夾樹狀結構、git 狀態色彩、涵蓋子資料夾的搜尋,以及列操作(開啟、加入提示、重新命名、複製、刪除到資源回收筒、複製路徑、在檔案總管中顯示)。按住 Ctrl 並點擊可插入 @path 提及;支援 Markdown/圖片/文字預覽,以及具語法突顯的編輯、尋找/取代、復原/重做與自動換行。它會保留編碼與換行字元;如果檔案已在磁碟上變更,就會拒絕儲存。使用 /plugin marketplace add IT-BAER/claude-forge,再執行 /plugin install file-explorer@claude-forge 安裝;也可以使用 claude --plugin-dir path/to/claude-forge/mods/file-explorer 試用。限制:僅支援 Windows(powershell.exe);依賴會隨版本變動的 Claude Code mod API(在 2.1.283 測試);檔案樹顯示前 800 列;每個檔案最多編輯 30,000 個字元。儲存庫:https://github.com/IT-BAER/claude-forge/tree/main/mods/file-explorer(MIT)。

安裝

安裝方式請查看原始來源。

原文 / README

I wanted a better file tree next to the chat without switching to an editor, so I wrote a mod for it. It opens a pane with the folder tree of your session's working directory. You can preview files and edit them without leaving Claude Code. What it does File tree with git status colours, search across all subfolders (also collapsed ones), and a row menu: open, add to prompt, rename, duplicate, delete (to the Recycle Bin), copy path, reveal in File Explorer. Ctrl+click on a file adds an "@path" mention to your prompt. Preview for Markdown (rendered, with a Source toggle), images and text files. Editor with syntax colours, find and replace, undo/redo, and soft wrap. Encoding and line endings are kept, and a save is refused if the file changed on disk in the meantime. Try it /plugin marketplace add IT-BAER/claude-forge /plugin install file-explorer@claude-forge Start a new session, then type /files to open or close the pane. For a one-session test without installing: claude --plugin-dir path/to/claude-forge/mods/file-explorer . Limits, so you know before you try Windows only for now. It calls powershell.exe for previews, saves and image handling. It uses Claude Code's mod API, which changes between releases. I run it on 2.1.283, and an upgrade can break it. The tree shows the first 800 rows. Edits are limited to 30,000 characters per file, and larger files open read-only. I have not tested it on macOS or Linux. Repo (MIT): https://github.com/IT-BAER/claude-forge/tree/main/mods/file-explorer Feedback and bug reports welcome. If something breaks after a Claude Code update, tell me your version. submitted by /u/IT-BAER [link] [comments]

更多類似作品