Skip to content

Improve Quick Search mode switching - #1827

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Oct 18, 2026
Merged

cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Static review identified no blocking issues, and updated tests cover the primary switching behavior; AppKit tests were not executed.

No open issues 🎉

What changed in this PR

Improves Quick Search mode switching with keyboard shortcuts and filter-specific placeholders.

Changes:

  • Adds Command–0 through Command–5 shortcuts and reorders filters.
  • Updates placeholders to describe the selected search mode, including localized text.
  • Expands tests for shortcuts, placeholders, and retained filter state.
File Description
MarkEditMac/​Sources/​Main/​AppResources.swift Moves Quick Search strings beside their integration code.
MarkEditMac/​Sources/​Main/​Application/​AppDelegate+QuickSearch.swift Supplies localized, filter-specific placeholders.
MarkEditMac/​Resources/​Localizable.xcstrings Adds translations for search targets and placeholder formatting.
MarkEditMac/​Modules/​Tests/​QuickSearchTests.swift Adapts tests to the placeholder closure.
MarkEditMac/​Modules/​Tests/​QuickSearchMenuTests.swift Updates controller initialization.
MarkEditMac/​Modules/​Tests/​QuickSearchFilterTests.swift Tests shortcuts, placeholders, ordering, and reopening.
MarkEditMac/​Modules/​Sources/​QuickSearchUI/​QuickSearchWindow.swift Routes filter shortcuts and placeholder updates.
MarkEditMac/​Modules/​Sources/​QuickSearchUI/​QuickSearchView.swift Handles guarded shortcut dispatch and placeholder changes.
MarkEditMac/​Modules/​Sources/​QuickSearchUI/​QuickSearchFilterLabels.swift Places document filters before file filters.
MarkEditMac/​Modules/​Sources/​QuickSearchUI/​QuickSearchController.swift Assigns shortcuts and refreshes placeholders on mode changes.
MarkEditMac/​Modules/​Sources/​QuickSearchCore/​QuickSearchFilter.swift Exposes the filter type for placeholder customization.

Review effort: Balanced

@cyanzhong
cyanzhong merged commit dae93e0 into main Oct 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants