Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce PromptInputModel that gives a more reliable and testable view of the current command line #210615

Merged
merged 17 commits into from Apr 18, 2024

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Apr 18, 2024

This adds the new PromptInputModel class which has a more reliable and testable view of the current command line when shell integration is available. This adds reporting of the line continuation from pwsh and bash to improve these results.

This also removed the text area overlay feature in dev mode and replaced it with a status bar item that reflects the current prompt using | for the cursor and for a new line:

Recording 2024-04-18 at 08 03 13

Follow ups:

fyi @cpendery I plan on adopting this in the suggest widget which should make a lot of things easier 👍

@Tyriar Tyriar self-assigned this Apr 18, 2024
@Tyriar Tyriar added this to the April 2024 milestone Apr 18, 2024
@Tyriar Tyriar changed the title Prompt input model Introduce PromptInputModel that gives a more reliable and testable view of the current command line Apr 18, 2024
@Tyriar Tyriar marked this pull request as ready for review April 18, 2024 15:04
@Tyriar Tyriar merged commit 00c528c into main Apr 18, 2024
6 checks passed
@Tyriar Tyriar deleted the tyriar/prompt_input_model branch April 18, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants