Skip to content

feat(history): add an option to search command history #151

Description

@ashvin-to

Describe the feature

IRIS already provides history through Ctrl+R, but there is no explicit option to search or filter the history list independently.

When browsing a large command history, finding a specific command can be difficult without a dedicated search action.

It should be implemented because

Add an option in history mode to search/filter the available command history.

The search should:

  • Accept a text query.
  • Filter history entries as the query changes.
  • Reuse the existing history search/fuzzy matching logic where possible.
  • Preserve the existing history navigation and selection behavior.
  • Continue supporting the existing history sources, including shell history and Atuin when enabled.

Example

  1. Open history with Ctrl+R.
  2. Choose the search option.
  3. Type a query such as docker compose.
  4. Show matching history entries.
  5. Navigate and select a result as usual.

Additional context

The current history implementation already supports fuzzy and substring matching, so this feature could build on that functionality rather than introducing another search engine.

Would you like to work on this issue?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions