[PR #17781] Clip the "current commandline" at the cursor position #31369

Open
opened 2026-01-31 09:46:49 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/17781

State: closed
Merged: Yes


This is particularly relevant to pwsh with the "ghost text" enabled. In that scenario, pwsh writes out the predicted command to the right of the cursor. With showSuggestions(useCommandline=true), we'd auto-include that text in the filter, and that was effectively useless.

This instead defaults us to not use anything to the right of the cursor (inclusive) for what we consider "the current commandline"

closes #17772

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17781 **State:** closed **Merged:** Yes --- This is particularly relevant to pwsh with the "ghost text" enabled. In that scenario, pwsh writes out the predicted command to the right of the cursor. With `showSuggestions(useCommandline=true)`, we'd auto-include that text in the filter, and that was effectively useless. This instead defaults us to not use anything to the right of the cursor (inclusive) for what we consider "the current commandline" closes #17772
claunia added the pull-request label 2026-01-31 09:46:49 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31369