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

Re-implement previewing, with the new TSF #17386

Merged
merged 9 commits into from
Jun 11, 2024

Conversation

zadjii-msft
Copy link
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

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
Member Author

Gifs:

snippet-previews-000

snippet-previews-001

snippet-previews-002

Copy link
Member

@lhecker lhecker left a comment

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.

src/cascadia/TerminalCore/Terminal.cpp Outdated Show resolved Hide resolved
src/cascadia/TerminalCore/Terminal.cpp Show resolved Hide resolved
src/renderer/base/renderer.cpp Outdated Show resolved Hide resolved
Copy link
Member

@carlos-zamora carlos-zamora left a comment

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
Member

DHowett commented Jun 11, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@zadjii-msft 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
28 checks passed
@zadjii-msft 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
4 participants