Skip to content

🐛 fix: restore command palette filtering#86

Merged
vaayne merged 2 commits intomainfrom
fix-command-palette-filter-84
Apr 21, 2026
Merged

🐛 fix: restore command palette filtering#86
vaayne merged 2 commits intomainfrom
fix-command-palette-filter-84

Conversation

@vaayne
Copy link
Copy Markdown
Owner

@vaayne vaayne commented Apr 21, 2026

Summary

  • read the live command palette query from the active field editor instead of stale NSTextField.stringValue reads inside the floating panel
  • keep ⌘P and ⌘⇧P on one mode-aware presentation path so both shortcuts switch and dismiss consistently
  • preserve IME marked-text behavior and document the fix in both changelogs

Testing

  • mise run test:core
  • mise run build

Closes #84

vaayne added 2 commits April 21, 2026 11:18
Read the live query from the search field's field editor while the palette is active instead of relying on NSTextField.stringValue, which can lag inside the nonactivating panel. This makes ⌘P / ⌘⇧P filtering stable again and avoids stealing arrow/return handling from IME marked text.

Fixes #84

Assisted-by: pi:gpt-5.4
Model the command palette as a single mode-aware controller instead of separate full/project-only entry points. Cmd+P and Cmd+Shift+P now share the same toggle path, so pressing the active shortcut dismisses the panel and switching shortcuts swaps modes in place.

Assisted-by: pi:gpt-5.4
@vaayne vaayne merged commit 7ada42b into main Apr 21, 2026
5 checks passed
@vaayne vaayne deleted the fix-command-palette-filter-84 branch April 21, 2026 05:48
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.

Bug: Command palette search field does not filter results (Cmd+P project switcher)

1 participant