Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[BUG] floating window does not disappear when diff view is shown

Đang mở
#180 0 bình luận 2 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
lua, neovim
Lĩnh vực
tooling

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:

  1. Open a file and launch Claude Code by calling ClaudeCodeFocus.
  2. Ask Claude to produce a change to the code.
  3. 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
Image
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

Mở trong Codespaces

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của coder/claudecode.nvim

Tất cả issue của coder/claudecode.nvim

Issue tương tự

Thêm issue về Lua

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.