ClaudeMods
☰
ZH-CN
● 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

更多类似作品