Add Rust CLI suggestion functionality #1320
Open
+189
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
what: Adds canned prompt suggestions to the Rust CLI, similar to the existing TypeScript CLI functionality.
Note: Uses Left/Right arrow keys for suggestion navigation instead of Tab, since Tab is reserved for TUI focus management between panes.
why: Closes #1259
how:
I have read the CLA Document and I hereby sign the CLA
@bolinfest I'm happy to add in giving the user the option to hide suggestions or add their own as a follow to this PR
video demos below
Rust CLI with suggestions (this branch)
https://github.com/user-attachments/assets/680b6b47-ff11-4fd4-a743-56d0509ef230
Rust CLI without suggestions (main branch)
https://github.com/user-attachments/assets/ecd28d00-361c-4f15-abd7-6705a769cd73
Typescript CLI on main
https://github.com/user-attachments/assets/4306c617-842a-4fc8-80cf-3868757fc5a8