Skip to content

Add global prompt history navigation in the TUI input #22

Description

@zatevakhin

Summary

Add shell-like prompt history navigation to the QueryMT TUI input.

Problem

There is currently no easy way to recall previously submitted prompts from the input field.

Expected behavior

When the input field is empty, Up and Down should navigate through previously submitted prompts, similar to command history in a shell.

This history should:

  • be global rather than session-specific
  • mix prompts from different sessions in a single ordered history, like shell history
  • be ordered by timestamp
  • be persisted in cache
  • allow the user to move backward and forward through previous prompts

Configuration

Prompt history should have a default cap of 1000 entries.

This limit should be configurable via tui.toml.

Notes

This should behave similarly to Bash history navigation, but for prompts instead of shell commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions