ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 aliemrevezir

project-hop

一個 Claude Code mod,用於在一個資料夾中管理多個專案。在該資料夾啟動 Claude,在輸入框上方選擇專案,然後在那裡開啟新工作階段或繼續最近的工作階段,無需離開終端。

aliemrevezir@aliemrevezir

aliemrevezir/mods/tree/main/plugins/project-hop

已翻譯

關於這個 mod

一個 Claude Code mod,用於在一個資料夾中管理多個專案。在該資料夾啟動 Claude,在輸入框上方選擇專案,然後在那裡開啟新工作階段或繼續最近的工作階段,無需離開終端。它在輸入框上方新增一個鍵盤驅動的條,將子資料夾列為 📁 列(最新活動優先,帶有工作階段計數),可用 ctrl+x tab、方向鍵、名稱輸入和分頁瀏覽。開啟專案時,會按標題或最後提示列出其最近的工作階段;可以繼續一個工作階段、啟動新工作階段(通過 /cd + /clear 的 n),繼續最近的(c),或返回(b)。包括 /projects [folder] 命令,透過 /plugin marketplace add aliemrevezir/mods 和 /plugin install project-hop@aliemrevezir-mods 安裝,或透過複製和使用 claude --plugin-dir。需要帶有 mod 的 Claude Code 構建和帶有 ls、stat、sed、grep 的 POSIX shell;從 ~/.claude/projects 讀取工作階段。MIT 授權。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add aliemrevezir/mods
claude plugin install project-hop
原文 / README

project-hop

A Claude Code mod for when you keep all your projects under one folder. Start Claude in that folder, pick a project above the prompt, then open a new session there or continue a recent one, without leaving the terminal.

What it does

Projects. When Claude starts in a folder that looks like a folder of projects, a band above the input lists its child folders as 📁 rows, newest activity first, with how many sessions each one has.

  • Press ctrl+x tab to give the band the keyboard, then ↑ ↓ to walk the folders and Enter to open one. Arrowing past the last row turns to the next page, past the first row to the previous one.
  • Or type a project's name and press Enter; a name that matches several filters the list.
  • ▲ / ▼ (k / j) also page through long lists; x closes the band.

Sessions. Opening a project shows its recent sessions by title or last prompt.

  • ↑ ↓ and Enter continue a session, or type its number.
  • n starts a new session in that project (/cd + /clear).
  • c continues the most recent one, b goes back to the projects.

Commands

| Command | What it does | | -------------------- | ---------------------------------------------------------------------------- | | /projects [folder] | Show the projects in folder; with no folder, here or the current project's parent |

Install

From inside Claude Code:

/plugin marketplace add aliemrevezir/mods
/plugin install project-hop@aliemrevezir-mods

Or load it straight from a clone:

git clone https://github.com/aliemrevezir/mods
claude --plugin-dir mods/plugins/project-hop

Requirements

  • A Claude Code build with mods (plugin hook modules).
  • A POSIX shell with ls, stat, sed and grep; sessions are read from ~/.claude/projects.

Development

claude plugin validate .
claude plugin test .

Folder and transcript scanning lives in hooks/scan.ts; the band, the picks and the hop itself live in hooks/register.tsx.

License

MIT

更多類似作品