Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[BUG] Hardcoded terminal buffer filter breaks with external terminal setups

未关闭
#206 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@seflue 已经在做这个了。

开始于 2026年3月7日。

  • #207 来自 @seflue —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
50/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
lua, neovim
领域
tooling

调研方向

从 selection.lua 开始,使用 terminal.provider = "none" 和采用 tmux 后端的 sidekick.nvim 重现设置。检查如何识别终端缓冲区,并验证选择它后是否会改为保留上一个活动的代码缓冲区。使用所描述的复现步骤确认修复。

由索引模型根据 Issue 内容生成。

描述

Bug Description

The terminal buffer filter in selection.lua is hardcoded to only match buffers containing "claude" in their name. When Claude Code runs via sidekick.nvim with mux.backend = "tmux", the terminal buffer is named term://...tmux - it never contains "claude". As a result, selection tracking treats the tmux terminal as an active code buffer instead of ignoring it.

I have a fix ready and will open a PR shortly.

To Reproduce

  1. Configure claudecode.nvim with terminal.provider = "none"
  2. Launch Claude Code via sidekick.nvim with tmux backend
  3. Switch cursor to the Claude Code terminal pane
  4. Selection tracking reports the tmux terminal buffer instead of the last active code file

Expected Behavior

Selection tracking should ignore the terminal buffer and retain the last active code buffer, regardless of how Claude Code was launched.

Environment

n/a - the issue is in the Lua filter logic, independent of versions.

Error Messages

No error messages. The filter silently fails to match.

主要语言
Lua
星标
3.1k
派生
219
PR 合并指标
30 天内没有已合并 PR

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

coder/claudecode.nvim 的其他 Issue

查看 coder/claudecode.nvim 的全部 Issue

相似的 Issue

更多 Lua Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。