From b2ca1a75df0ba3d8754443c9bea570e710f62d6d Mon Sep 17 00:00:00 2001 From: Nathan Nutter Date: Thu, 17 Sep 2026 17:32:51 -0500 Subject: [PATCH] Clear the quickfilter after creating a worktree Successful timber create left the typed name@repo in the TextField because refresh only reset filterText. Wipe the filter on create and sync the field on refresh so the next open starts empty. --- Panel.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Panel.qml b/Panel.qml index e03ca5a..778e8b4 100644 --- a/Panel.qml +++ b/Panel.qml @@ -65,6 +65,7 @@ Panel { root.filterText = "" root.selectedIndex = 0 root.cursorActive = false + root.syncFilterField() listProc.running = true } @@ -229,8 +230,10 @@ Panel { onExited: function(code) { if (code === 0) { var path = String(createStdout.text || "").trim().split("\n").pop() || "" - if (path) root.openPath(path) - else root.notifyFailure("worktree create", "reported no path") + if (path) { + root.setFilter("") + root.openPath(path) + } else root.notifyFailure("worktree create", "reported no path") } else { var detail = String(createStderr.text || "").trim().split("\n").pop() || ("exit " + code) root.notifyFailure("worktree create", detail)