Skip to content

Re-implement previewing, with the new TSF - #17386

Merged
Mike Griese (zadjii-msft) merged 9 commits into
mainfrom
dev/migrie/f/preview-input-2024
Jun 11, 2024
Merged

Mike Griese (zadjii-msft) merged 9 commits into
mainfrom
dev/migrie/f/preview-input-2024

Conversation

@zadjii-msft

Copy link
Copy Markdown
Member

This adds support for previewing snippets, again. This time, with the new TSF implementation. Leonard pointed me in the right direction with this - he's the one who suggested to have a second Composition just for previews like this.

Then we do some tricky magic to make it work when we're using commandlines from shell integration, or you've got the ghost text from powershell, etc. Then we visualize the control codes, just so they aren't just U+FFFE diamonds.

Closes #12861

Comment thread src/cascadia/TerminalCore/Terminal.cpp Outdated
return;
}

// When we're previewing suggestions, they might be preceeded with DEL

Check failure

Code scanning / check-spelling

Unrecognized Spelling

[preceeded](#security-tab) is not a recognized word. \(unrecognized-spelling\)
@microsoft-github-policy-service microsoft-github-policy-service Bot added Issue-Task It's a feature request, but it doesn't really need a major design. Area-CmdPal Command Palette issues and features Area-Settings Issues related to settings and customizability, for console or terminal Product-Terminal The new Windows Terminal. labels Jun 6, 2024
@zadjii-msft

Copy link
Copy Markdown
Member Author

Gifs:

snippet-previews-000

snippet-previews-001

snippet-previews-002

@lhecker Leonard Hecker (lhecker) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just nits + the cursorPos thing.

Comment thread src/cascadia/TerminalCore/Terminal.cpp Resolved
Comment thread src/cascadia/TerminalCore/Terminal.cpp Resolved
Comment thread src/renderer/base/renderer.cpp Resolved
Comment thread src/cascadia/TerminalCore/Terminal.cpp Resolved

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks and feels great! Approving, though you'll probably wanna address the nits Dustin's found.

@DHowett

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@zadjii-msft
Mike Griese (zadjii-msft) added this pull request to the merge queue Jun 11, 2024
Merged via the queue into main with commit 86ba986 Jun 11, 2024
@zadjii-msft
Mike Griese (zadjii-msft) deleted the dev/migrie/f/preview-input-2024 branch June 11, 2024 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-CmdPal Command Palette issues and features Area-Settings Issues related to settings and customizability, for console or terminal Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sendInput should be previewable

5 participants