[FEATURE] Expose terminal variable
まだ誰も着手していません。
評価
調査の方向性
まず、ClaudeCode が terminal を作成して保存する場所を追跡します。これには、issue で参照されている claudecode.terminal モジュールも含め、既存の user-command のエントリポイントと比較します。完了の条件は、public accessor が、2つ目の terminal を作成せずに、すでに作成された terminal をプログラムから利用するために返すことです。既存の terminal の動作が変わらないことを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Feature Description
When we call ClaudeCode, it creates a terminal
local terminal_ok, terminal = pcall(require, "claudecode.terminal")
but the only way to access it is via user commands.
Feature would be to expose it.
Use Case
Anyone who wants to make any code interacting with claude API.
User commands are not to be made for programatic interactions as the name suggests.
If I require("claudecode/terminal") it spans up another terminal if I do toggle or whatever.
Proposed Solution
require("claude").get_terminal() (or get_terminal_interface()) would return the created terminal
Alternatives Considered
workaround is calling user commands. It sucks, you are limited compared to API, you have no LSP helping you, it's weird and you have to escape characters sometimes (or i think you can provide with { args = txt } the text and no need to escape. but anyway it's confusing).
- 主要言語
- Lua
- スター
- 3.1k
- フォーク
- 217
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/claudecode.nvim のほかの issue
-
bug needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
coder/claudecode.nvim#314 ·
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
coder/claudecode.nvim#313 ·
-
needs-triage
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
coder/claudecode.nvim#319 · リアクション 1 件 ·
-
[BUG] 框选文本一直抱错误信息 オープンbug needs-triage
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
coder/claudecode.nvim#316 · コメント 1 件 ·
-
needs-triage
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
coder/claudecode.nvim#306 ·
coder/claudecode.nvim の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
HenrikBengtsson/CBI-software#134 ·
-
Nmap
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
secondlife/slua#96 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100