Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#180 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
lua, neovim
Ambito
tooling

Direzione di ricerca

La issue menziona ClaudeCodeFocus e il flusso di diff-view; riproducilo impostando terminal.snacks_win_opts.position su float e diff_opts.keep_terminal_focus=false. Traccia la gestione del focus e delle finestre attorno a ClaudeCodeFocus e all’apertura del diff, quindi verifica che l’apertura del diff nasconda la finestra fluttuante senza una seconda chiamata al focus.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Lua
Stelle
3.1k
Fork
217
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di coder/claudecode.nvim

Tutte le issue di coder/claudecode.nvim

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.