[BUG] floating window does not disappear when diff view is shown
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Issue đề cập đến ClaudeCodeFocus và luồng diff-view; hãy tái hiện bằng cách đặt terminal.snacks_win_opts.position thành float và diff_opts.keep_terminal_focus=false. Theo dõi việc xử lý focus và cửa sổ xung quanh ClaudeCodeFocus và thao tác mở diff, sau đó xác minh rằng việc mở diff sẽ ẩn cửa sổ nổi mà không có lần gọi focus thứ hai.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Lua
- Star
- 3.1k
- Fork
- 220
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của coder/claudecode.nvim
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
coder/claudecode.nvim#321 ·
-
[BUG] ClaudeCodeAdd fails on paths with spacesCó thể đã có người làm @7A1T đã nhận 52 ngày trước. Đang mởbug needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
coder/claudecode.nvim#314 ·
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
coder/claudecode.nvim#313 ·
-
Is this plugin abondonned?Đang mởneeds-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
coder/claudecode.nvim#319 · 6 reaction ·
-
[BUG] 框选文本一直抱错误信息Có thể đã có người làm @DukeLog đã nhận 41 ngày trước. Đang mởbug needs-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
coder/claudecode.nvim#316 · 1 bình luận ·
Tất cả issue của coder/claudecode.nvim
Issue tương tự
-
Lasso not PastingĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
mogenson/PaperWM.spoon#178 ·
-
ci: Verify install never runs examples_install or tests_install, so a clear they widen passesĐang mởseverity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
luainkernel/lunatik#1876 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug ready ticket
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Domktorymysli/vclu#5 ·