From 93a2edd8a868fdfd55fe3c00f12c68f81c09c375 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 22 Aug 2025 10:02:47 +0800 Subject: [PATCH] enhance: text search in ComboBox Signed-off-by: leo --- src/Views/AddWorktree.axaml | 1 + src/Views/AddWorktree.axaml.cs | 1 + src/Views/Pull.axaml | 1 + src/Views/Pull.axaml.cs | 3 +++ src/Views/Push.axaml | 2 ++ src/Views/Push.axaml.cs | 4 ++++ src/Views/SetUpstream.axaml | 1 + src/Views/SetUpstream.axaml.cs | 3 +++ 8 files changed, 16 insertions(+) diff --git a/src/Views/AddWorktree.axaml b/src/Views/AddWorktree.axaml index 1811008c..6ab3360b 100644 --- a/src/Views/AddWorktree.axaml +++ b/src/Views/AddWorktree.axaml @@ -80,6 +80,7 @@ Height="28" Padding="8,0" VerticalAlignment="Center" HorizontalAlignment="Stretch" ItemsSource="{Binding RemoteBranches}" + IsTextSearchEnabled="True" SelectedItem="{Binding SelectedTrackingBranch, Mode=TwoWay}" IsVisible="{Binding SetTrackingBranch, Mode=OneWay}"> diff --git a/src/Views/AddWorktree.axaml.cs b/src/Views/AddWorktree.axaml.cs index 4ac2d85f..f5d90d55 100644 --- a/src/Views/AddWorktree.axaml.cs +++ b/src/Views/AddWorktree.axaml.cs @@ -1,4 +1,5 @@ using System; + using Avalonia.Controls; using Avalonia.Interactivity; using Avalonia.Platform.Storage; diff --git a/src/Views/Pull.axaml b/src/Views/Pull.axaml index 5fc2ecd3..df1fe4d6 100644 --- a/src/Views/Pull.axaml +++ b/src/Views/Pull.axaml @@ -46,6 +46,7 @@ Margin="0,0,8,0" Text="{DynamicResource Text.Pull.Branch}"/>