From f81e441b15f76e89dd76db844038a540821c9dc9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 1 Jun 2025 13:11:53 +0530 Subject: [PATCH] Update TODO --- kittens/choose_files/main.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/kittens/choose_files/main.go b/kittens/choose_files/main.go index 8a36b6564..96c74a478 100644 --- a/kittens/choose_files/main.go +++ b/kittens/choose_files/main.go @@ -15,8 +15,8 @@ import ( "github.com/kovidgoyal/kitty/tools/utils" ) -// TODO: Comboboxes, multifile selections, change dir, mountpoint crossing -// options, save file name, file/dir modes. +// TODO: Comboboxes, multifile selections, save file name, file/dir modes. Make +// window title conditional on mode var _ = fmt.Print var debugprintln = tty.DebugPrintln @@ -81,11 +81,7 @@ type Handler struct { func (h *Handler) draw_screen() (err error) { matches, in_progress := h.get_results() - if len(matches) > 0 { - h.lp.SetWindowTitle(matches[0].text) - } else { - h.lp.SetWindowTitle("Select a file") // TODO: make this conditional on mode - } + h.lp.SetWindowTitle("Select a file") // TODO: make this conditional on mode h.lp.StartAtomicUpdate() defer h.lp.EndAtomicUpdate() h.lp.ClearScreen()