Skip to content

fix: prioritize exact type matches in picker and preserve pre-commit colors#16

Merged
o6uoq merged 2 commits intomainfrom
fix/picker-sort-and-precommit-colors
Mar 25, 2026
Merged

fix: prioritize exact type matches in picker and preserve pre-commit colors#16
o6uoq merged 2 commits intomainfrom
fix/picker-sort-and-precommit-colors

Conversation

@o6uoq
Copy link
Copy Markdown
Owner

@o6uoq o6uoq commented Mar 25, 2026

Summary

  • Sort picker types by name length (ascending), then alphabetically, so shorter exact matches rank above longer items that only match via description text (e.g. typing "ci" shows "ci" before "build")
  • Connect git commit stdio directly to the terminal so pre-commit hooks retain colored and interactive output
  • Style the "Type to filter, Enter to select" hint in dark grey for visual subtlety

Test plan

  • TestPickerTypesSortedByLengthThenAlpha updated and passing
  • All existing tests pass (go test ./...)
  • Pre-commit hooks run with colors preserved
  • golangci-lint passes

o6uoq added 2 commits March 25, 2026 22:25
…colors

Sort picker types by name length (ascending) so shorter exact matches
rank above longer items that only match via description text (e.g. "ci"
appears before "build"). Connect git commit stdio directly to the
terminal so pre-commit hooks retain colored/interactive output.
@o6uoq o6uoq merged commit 0e08ae8 into main Mar 25, 2026
1 check passed
@o6uoq o6uoq deleted the fix/picker-sort-and-precommit-colors branch March 25, 2026 22:30
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.

1 participant