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

link

답변의 파일 경로를 클릭하면 Finder가 해당 파일을 선택한 상태로 열립니다.

alex2481kobe@alex2481kobe

alex2481kobe/claude-mods/tree/main/plugins/link

번역 완료

이 mod 소개

Claude Code는 파일 경로를 일반 텍스트로 출력합니다. 이 mod를 사용하면 답변에 있는 디스크상의 경로가 링크가 됩니다. 누르면 Finder에서 해당 폴더의 파일을 선택해 보여 주거나, 경로가 폴더면 폴더 자체를 열고 토스트로 대상을 알려 줍니다. 도우미 메시지에 ui.render hook을 사용해 경로처럼 보이는 텍스트를 찾고, 세션 폴더와 홈 디렉터리를 기준으로 해석한 뒤 존재하는 경로를 file:// 링크로 바꿉니다. 링크를 누르면 open -R <file> 또는 open <folder>를 실행합니다. 터미널에서 mod를 지원하는 Claude Code, macOS, Ghostty나 iTerm2처럼 하이퍼링크(OSC 8)를 지원하는 터미널이 필요합니다. /plugin marketplace add alex2481kobe/claude-mods와 /plugin install link@claude-mods로 설치합니다.

설치

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

claude plugin marketplace add alex2481kobe/claude-mods
claude plugin install link
원문 / README

link

Click a file path in a reply and Finder opens with it selected.

Claude Code prints file paths as plain text. With this mod, a path in a reply that exists on disk becomes a link: pressing it shows a file selected in its folder in Finder, or opens a folder as itself, and a toast says which.

Requirements

  • Claude Code with mods, in the terminal (the reply is only changed there)
  • macOS: it runs open and open -R
  • A terminal with hyperlinks (OSC 8), such as Ghostty or iTerm2. Apple Terminal has none: there Claude Code writes each link's file:// address after it, so a path shows twice, and pressing it does not always open it

Install

/plugin marketplace add alex2481kobe/claude-mods
/plugin install link@claude-mods

How it works

  • A ui.render hook on assistant messages finds path-like text, resolves it against the session's folder and home, and keeps only paths that exist.
  • Those paths are turned into file:// links in the reply's Markdown. A folder's URL ends in a slash, which is how a press tells it from a file.
  • Pressing a link runs open -R <file> or open <folder> and toasts the result, or the error if it failed.
  • A reply longer than 10000 characters, or with no existing path, keeps the engine's own drawing.

비슷한 프로젝트