Skip to content

feat: add history search#156

Merged
franklinkim merged 2 commits into
mainfrom
feature/history-search
Jun 2, 2026
Merged

feat: add history search#156
franklinkim merged 2 commits into
mainfrom
feature/history-search

Conversation

@franklinkim

@franklinkim franklinkim commented Jun 2, 2026

Copy link
Copy Markdown
Member

Description

Add opt-in CTRL+R fuzzy history search to the interactive prompt via a new WithHistorySearch option.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactoring
  • ⚡ Performance
  • ✅ Tests
  • 🔧 Build/CI

Changes

  • feat: add history search
    • pkg/prompt: new WithHistorySearch option wires CTRL+R to inject a sentinel prefix; complete() returns fuzzy-matched history (via lithammer/fuzzysearch); execute() strips the sentinel before dispatch
    • pkg/config/prompt.go + posh.schema.json: config surface for the new option
    • embed/scaffold/init/$.posh.yaml + plugin.go.gotext: scaffold wires the option through
    • go.mod/go.sum: promote lithammer/fuzzysearch from indirect to direct

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my own code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.

@franklinkim franklinkim merged commit a101c0c into main Jun 2, 2026
5 checks passed
@franklinkim franklinkim deleted the feature/history-search branch June 2, 2026 13:23
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