Skip to content

Tail tip suggestions — show parameter hints after cursor #508

@stalep

Description

@stalep

Summary

Display contextual parameter hints (tail tips) after the cursor as the user types commands, showing expected arguments and options.

Description

When typing a command, show dimmed hint text after the cursor indicating what parameters are expected. For example:

$ git commit [-m <message>] [-a] [--amend]
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tail tip (dimmed)

The tail tip would update dynamically based on:

  • Which command is being typed
  • Which options have already been provided
  • The current argument position

This leverages the existing ghost text rendering infrastructure in aesh-readline, but requires command metadata from the aesh command framework (@Option, @Argument annotations) to generate the tips.

Implementation Notes

  • Use @Option and @Argument metadata to build tip text
  • Show remaining required options prominently
  • Dim optional parameters
  • Update on each keystroke as the parser identifies the current position
  • Builds on aesh-readline's SuggestionProvider / ghost text infrastructure

Priority

High — significantly improves command discoverability.

Metadata

Metadata

Assignees

No one assigned

    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