[BUG] floating window does not disappear when diff view is shown
まだ誰も着手していません。
評価
調査の方向性
issue では ClaudeCodeFocus と diff-view フローについて言及されています。terminal.snacks_win_opts.position を float に設定し、diff_opts.keep_terminal_focus=false にして再現してください。ClaudeCodeFocus と diff のオープン処理周辺のフォーカスおよびウィンドウ処理を追跡し、その後、diff を開くと 2 回目のフォーカス呼び出しなしでフローティングウィンドウが非表示になることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Bug Description
With terminal.snacks_win_opts.position is set to float, the floating window does not disappear when a diff view is opened. Instead, the diff view is visible and has cursor focus. Calling ClaudeCodeFocus will switch focus to the open floating window. Calling it again will make the window disappear and switch to the diff view. However, this is a very cumbersome workaround.
My config:
{
terminal_cmd = "~/.claude/local/claude",
diff_opts = {
keep_terminal_focus = false,
},
terminal = {
snacks_win_opts = {
position="float",
width=0.9,
height=0.9,
backdrop={
bg="blue",
blend=90,
},
keys = {
claude_hide = {
toggle_key,
function(self)
self:hide()
end,
mode="t",
desc="Hide",
}
},
}
}
}
To Reproduce
Steps to reproduce the behavior:
- Open a file and launch Claude Code by calling
ClaudeCodeFocus. - Ask Claude to produce a change to the code.
- Observe that the diff view opens, with the cursor on it, but the floating window is still visible mostly obscuring it.
Expected Behavior
The floating window should disappear when the diff view opens.
Environment
- Neovim version: 0.9.5 (0.9.5-6ubuntu2)
- Claude Code CLI version: 2.1.19
- OS: Ubuntu 24.04.3 LTS
- Plugin version: main (93f8e48)
- Snacks version: 2.27.0
- 主要言語
- 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
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
coder/claudecode.nvim#309 ·
coder/claudecode.nvim の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
openSUSE/python-rpm-macros#219 ·
-
bug mini.bracketed
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
accessibility bug typst
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
quarto-dev/quarto-cli#14947 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
HenrikBengtsson/CBI-software#134 ·