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.
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:
The tail tip would update dynamically based on:
This leverages the existing ghost text rendering infrastructure in aesh-readline, but requires command metadata from the aesh command framework (
@Option,@Argumentannotations) to generate the tips.Implementation Notes
@Optionand@Argumentmetadata to build tip textSuggestionProvider/ ghost text infrastructurePriority
High — significantly improves command discoverability.