[FEATURE] Expose terminal variable
还没有人认领这个 Issue。
评估
调研方向
首先追踪 ClaudeCode 创建和存储 terminal 的位置,包括 issue 中引用的 claudecode.terminal 模块,并将其与现有的 user-command 入口进行比较。完成的标准是:一个公共 accessor 返回已创建的 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
- 派生
- 219
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/claudecode.nvim 的其他 Issue
-
needs-triage
难度 2/5 1-3 小时 新手友好度 84/100
coder/claudecode.nvim#321 ·
-
[BUG] ClaudeCodeAdd fails on paths with spaces可能已有人在做 @7A1T 于 58 天前认领。 未关闭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 一周以上 新手友好度 20/100
coder/claudecode.nvim#319 · 9 个 reaction ·
-
[BUG] 框选文本一直抱错误信息可能已有人在做 @DukeLog 于 47 天前认领。 未关闭bug needs-triage
难度 4/5 3-5 天 新手友好度 35/100
coder/claudecode.nvim#316 · 1 条评论 ·
查看 coder/claudecode.nvim 的全部 Issue
相似的 Issue
-
documentation good first issue help wanted
难度 2/5 1-3 小时 新手友好度 90/100
eugenioenko/ttt#1000 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 75/100
dense-analysis/ale#5174 ·
-
难度 2/5 1-3 小时 新手友好度 66/100
LuaLS/lua-language-server#3477 ·
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复