[PR #15539] Search web for selected text #30663

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

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

State: closed
Merged: Yes


Added searchWeb command to search the selected text on the web.
Arguments:

  • queryUrl: URL of the web page to launch (the selected text will be appended to it)
  • wrapWithQuotes: whether the selected text should be wrapped with quotes (true/false)

To make the search text more "compact" and handle multi-line selections, I'm concatenating the selected lines and replacing consecutive whitespaces with a single space (we may change this with something more clever in case).

Validation Steps Performed

Manual testing with single, multi-line, block selections.
Enable/disable the wrapWithQuotes argument.

Closes #10175

**Original Pull Request:** https://github.com/microsoft/terminal/pull/15539 **State:** closed **Merged:** Yes --- Added `searchWeb` command to search the selected text on the web. Arguments: - `queryUrl`: URL of the web page to launch (the selected text will be appended to it) - `wrapWithQuotes`: whether the selected text should be wrapped with quotes (true/false) To make the search text more "compact" and handle multi-line selections, I'm concatenating the selected lines and replacing consecutive whitespaces with a single space (we may change this with something more clever in case). ## Validation Steps Performed Manual testing with single, multi-line, block selections. Enable/disable the `wrapWithQuotes` argument. Closes #10175
claunia added the pull-request label 2026-01-31 09:42:10 +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#30663