From 1ed0a39cdef9437bcd90e546478dcf003f392af1 Mon Sep 17 00:00:00 2001 From: TetraTheta <37061801+TetraTheta@users.noreply.github.com> Date: Sun, 26 Oct 2025 21:24:45 +0900 Subject: [PATCH 1/4] Enable Ctrl+Backspace Enabling AutoComplete will also enable 'Delete Whole Word'(Ctrl+Backspace) feature as side-effect. Source: https://stackoverflow.com/a/30269663 --- NET48/FindInFilesForm.Designer.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NET48/FindInFilesForm.Designer.cs b/NET48/FindInFilesForm.Designer.cs index e802cc0..ef4eb92 100644 --- a/NET48/FindInFilesForm.Designer.cs +++ b/NET48/FindInFilesForm.Designer.cs @@ -265,6 +265,7 @@ private void InitializeComponent() { // textBoxGlob // this.textBoxGlob.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxGlob.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; this.textBoxGlob.Location = new System.Drawing.Point(635, 8); this.textBoxGlob.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.textBoxGlob.Name = "textBoxGlob"; @@ -275,6 +276,7 @@ private void InitializeComponent() { // textBoxEncoding // this.textBoxEncoding.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxEncoding.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; this.textBoxEncoding.Location = new System.Drawing.Point(635, 32); this.textBoxEncoding.Name = "textBoxEncoding"; this.textBoxEncoding.Size = new System.Drawing.Size(144, 21); @@ -284,6 +286,7 @@ private void InitializeComponent() { // this.comboBoxSearchPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); + this.comboBoxSearchPath.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; this.comboBoxSearchPath.FormattingEnabled = true; this.comboBoxSearchPath.Location = new System.Drawing.Point(103, 8); this.comboBoxSearchPath.MaxDropDownItems = 16; @@ -295,6 +298,7 @@ private void InitializeComponent() { // this.comboBoxSearchPattern.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); + this.comboBoxSearchPattern.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; this.comboBoxSearchPattern.FormattingEnabled = true; this.comboBoxSearchPattern.Location = new System.Drawing.Point(103, 32); this.comboBoxSearchPattern.MaxDropDownItems = 16; From edf3239988b4e92adf26a637d2f3087853f0234a Mon Sep 17 00:00:00 2001 From: TetraTheta <37061801+TetraTheta@users.noreply.github.com> Date: Sun, 26 Oct 2025 22:11:10 +0900 Subject: [PATCH 2/4] Suggest FileSystem in comboBoxSearchPath --- NET48/FindInFilesForm.Designer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NET48/FindInFilesForm.Designer.cs b/NET48/FindInFilesForm.Designer.cs index ef4eb92..4cd5826 100644 --- a/NET48/FindInFilesForm.Designer.cs +++ b/NET48/FindInFilesForm.Designer.cs @@ -287,6 +287,7 @@ private void InitializeComponent() { this.comboBoxSearchPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.comboBoxSearchPath.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.comboBoxSearchPath.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.FileSystem; this.comboBoxSearchPath.FormattingEnabled = true; this.comboBoxSearchPath.Location = new System.Drawing.Point(103, 8); this.comboBoxSearchPath.MaxDropDownItems = 16; From 5c86a027dc9c9b5a154260bb42f4a69ba56272cc Mon Sep 17 00:00:00 2001 From: TetraTheta <37061801+TetraTheta@users.noreply.github.com> Date: Sun, 26 Oct 2025 23:31:03 +0900 Subject: [PATCH 3/4] Do same things to .NET WinForm too --- FindInFilesForm.Designer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FindInFilesForm.Designer.cs b/FindInFilesForm.Designer.cs index 59cb4e4..3d174fb 100644 --- a/FindInFilesForm.Designer.cs +++ b/FindInFilesForm.Designer.cs @@ -243,6 +243,8 @@ private void InitializeComponent() { // textBoxGlob // textBoxGlob.Anchor = AnchorStyles.Top | AnchorStyles.Right; + textBoxGlob.AutoCompleteMode = AutoCompleteMode.Suggest; + textBoxGlob.AutoCompleteSource = AutoCompleteSource.FileSystem; textBoxGlob.Location = new Point(676, 12); textBoxGlob.Name = "textBoxGlob"; textBoxGlob.Size = new Size(151, 23); @@ -252,6 +254,7 @@ private void InitializeComponent() { // textBoxEncoding // textBoxEncoding.Anchor = AnchorStyles.Top | AnchorStyles.Right; + textBoxEncoding.AutoCompleteMode = AutoCompleteMode.Suggest; textBoxEncoding.Location = new Point(676, 38); textBoxEncoding.Name = "textBoxEncoding"; textBoxEncoding.Size = new Size(151, 23); @@ -260,6 +263,7 @@ private void InitializeComponent() { // comboBoxSearchPath // comboBoxSearchPath.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; + comboBoxSearchPath.AutoCompleteMode = AutoCompleteMode.Suggest; comboBoxSearchPath.FormattingEnabled = true; comboBoxSearchPath.Location = new Point(108, 12); comboBoxSearchPath.Name = "comboBoxSearchPath"; @@ -269,6 +273,7 @@ private void InitializeComponent() { // comboBoxSearchPattern // comboBoxSearchPattern.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; + comboBoxSearchPattern.AutoCompleteMode = AutoCompleteMode.Suggest; comboBoxSearchPattern.FormattingEnabled = true; comboBoxSearchPattern.Location = new Point(108, 38); comboBoxSearchPattern.Name = "comboBoxSearchPattern"; From 15d4c04ee7bec60b1ba015ee497a7e6c1ae18532 Mon Sep 17 00:00:00 2001 From: TetraTheta <37061801+TetraTheta@users.noreply.github.com> Date: Sun, 26 Oct 2025 23:32:27 +0900 Subject: [PATCH 4/4] This is what happens if you don't focus :( --- FindInFilesForm.Designer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FindInFilesForm.Designer.cs b/FindInFilesForm.Designer.cs index 3d174fb..2d6148e 100644 --- a/FindInFilesForm.Designer.cs +++ b/FindInFilesForm.Designer.cs @@ -244,7 +244,6 @@ private void InitializeComponent() { // textBoxGlob.Anchor = AnchorStyles.Top | AnchorStyles.Right; textBoxGlob.AutoCompleteMode = AutoCompleteMode.Suggest; - textBoxGlob.AutoCompleteSource = AutoCompleteSource.FileSystem; textBoxGlob.Location = new Point(676, 12); textBoxGlob.Name = "textBoxGlob"; textBoxGlob.Size = new Size(151, 23); @@ -264,6 +263,7 @@ private void InitializeComponent() { // comboBoxSearchPath.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; comboBoxSearchPath.AutoCompleteMode = AutoCompleteMode.Suggest; + comboBoxSearchPath.AutoCompleteSource = AutoCompleteSource.FileSystem; comboBoxSearchPath.FormattingEnabled = true; comboBoxSearchPath.Location = new Point(108, 12); comboBoxSearchPath.Name = "comboBoxSearchPath";