ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 0xGondarxyz

quote-buttons

Claude Code mod입니다. 네 가지 기능을 추가합니다.

0xGondarxyz@0xGondarxyz

0xGondarxyz/claude-code-mods/tree/main/quote-buttons

번역 완료

이 mod 소개

quote-buttons는 채팅 UI에 네 가지 기능을 추가하는 Claude Code mod입니다. 1. 인용 버튼: 모든 사용자 메시지와 어시스턴트 텍스트 블록에 마우스를 올리면 [ ↩ quote ]가 표시됩니다. 클릭하면 메시지가 인용으로 프롬프트 상자에 들어가며(각 줄 앞에 > 를 붙이고 최대 6줄/400자, 잘린 곳에는 …)초안 위에 놓입니다. 2. 편집 버튼: 자신의 메시지에는 [ ✎ edit ]도 표시되고 원래 텍스트가 상자에 들어갑니다. 상자에 이미 텍스트가 있으면 Clear the box first를 표시하고 아무것도 바꾸지 않습니다(실제 되감기는 Esc Esc입니다). 3. 보내기 취소: 턴이 실행 중일 때 제출한 프롬프트를 5초 동안 보류하고 밴드에 Sending in 5s: <text>와 [ undo ]를 표시합니다. 취소하면 프롬프트를 버리고 초안 아래의 상자로 텍스트를 돌려보냅니다. 유휴 상태에서 보낸 프롬프트는 건드리지 않습니다. 4. 넘겨주기 버튼: 모든 메시지에 [ ⇢ with context ]와 [ ⇢ fresh ]를 표시하고 세션의 프로젝트 루트에 새 Konsole 탭을 엽니다. 컨텍스트 포함 실행은 `claude --resume <session id> --fork-session "Take this over and do it now:

<message>", 새로 실행은 claude "<message>"입니다. 탭은 argv로 konsole --new-tab --workdir <root> -e claude ...를 통해 시작되므로 따옴표와 줄 바꿈이 안전합니다. Konsole이 없거나 실행이 실패하거나 세션 ID가 없으면 토스트에 이유를 보여 주고 전체 명령을 클립보드에 넣습니다. 프롬프트 위의 밴드는 공유되므로 이 mod는 다른 mod가 그리는 내용을 감쌉니다. 제한 사항: 넘겨주기는 기본 단일 프로세스 창인 Konsole이 있어야 --new-tab을 사용하며, 그렇지 않으면 새 창이 열립니다. 버튼에는 전체 화면 터미널 레이아웃(마우스 클릭)이 필요합니다. 기본 화면은 포인터 없이 스크롤백에 출력하기 때문입니다. 5초 보류는 hook의 10초 예산을 사용합니다. claude plugin validate .와 claude plugin test .`로 개발하세요.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add 0xGondarxyz/claude-code-mods
claude plugin install quote-buttons
원문 / README

quote-buttons

A Claude Code mod. It adds four things.

  1. Quote button. Every user message and every assistant text block shows [ ↩ quote ] on hover (top right of the message). A click puts the message in the prompt box as a quote (> per line, at most 6 lines and 400 characters, … when cut) above your draft.
  2. Edit button. Your own messages also show [ ✎ edit ]. It puts the original text in the box. If the box has text, it shows Clear the box first and changes nothing. Real rewind stays Esc Esc.
  3. Undo send. A prompt you submit while a turn runs is held for 5 seconds. The band above the prompt shows Sending in 5s: <text> and [ undo ]. Undo drops the prompt and puts the text back in the box (below any draft). Prompts sent while idle are untouched.
  4. Hand-off buttons. Every message also shows [ ⇢ with context ] and [ ⇢ fresh ] in the same hover box. Each opens a new Konsole tab in the session's project root.
    • ⇢ with context runs claude --resume <session id> --fork-session "Take this over and do it now:\n\n<message>", a fork of the whole conversation.
    • ⇢ fresh runs claude "<message>", a new session.
    • The tab is opened with konsole --new-tab --workdir <root> -e claude ..., by argv (no shell, so quotes and newlines are safe). Toast: Opened a new tab (with context) or (fresh).
    • If Konsole is missing, the launch fails or there is no session id yet, the toast gives the reason and the full command goes to the clipboard to paste into any terminal.

The band above the prompt is shared: the mod wraps what other mods draw there.

Limits

  • The hand-off buttons need Konsole, and --new-tab needs "Run all Konsole windows in a single process" (the default); otherwise Konsole opens a new window.
  • Buttons need the fullscreen terminal layout (mouse clicks). On the main screen (CLAUDE_CODE_NO_FLICKER=0, tmux by default) the transcript is printed into scrollback and there is no pointer, so the message buttons cannot be clicked. The undo band button is a normal Button (click, or Tab focus and Enter where the band holds the keys); not tested on the main screen.
  • The 5 second hold costs 5 s of the hook's 10 s budget.

Develop

claude plugin validate .
claude plugin test .

비슷한 프로젝트