-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
search web for highlighted text feature? #10175
Comments
This is a neat idea for an extension, thanks! |
Start with this branch: https://github.com/microsoft/terminal/compare/dev/migrie/fhl/10175-web-search-for-text Anyone coming to this thread: Taking the above commit, it should be fairly trivial to get this across the finish line.
|
Could I just trim spaces from the end of each line and join with a single space? That way all wrapped lines would unwrap and block selection. |
That seems like a sensible default to me! Dunno why I never thought of that 😅 |
Made a PR, let's see how it goes 😄 |
This PR adds a `searchWeb` command to search the selected text on the web. Arguments: - `queryUrl`: URL of the web page to launch (the selected text will be inserted where the first `%s` is found in the query string) 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. Closes #10175 --------- Co-authored-by: Marco Pelagatti <marco.pelagatti@iongroup.com> Co-authored-by: Mike Griese <migrie@microsoft.com>
This PR adds a `searchWeb` command to search the selected text on the web. Arguments: - `queryUrl`: URL of the web page to launch (the selected text will be inserted where the first `%s` is found in the query string) 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. Closes microsoft#10175 --------- Co-authored-by: Marco Pelagatti <marco.pelagatti@iongroup.com> Co-authored-by: Mike Griese <migrie@microsoft.com>
would be nice to highlight some terminal output and right click -> search in browser and it would just send whatever you highlighted to your default web browser.
would also be nice to have a "search stackoverflow" function, I was using google colab and when you get an error in that, it gives you a button that offers to search stackoverflow for you. might be nice to have a thing that detects text in your terminal looking like it might be an error message and offering the user a button to search web for that text. picture attached is what that looks like on colab.
so that button sends you here..
pretty simple little tool, but makes a world of difference.
Description of the new feature/enhancement
Proposed technical implementation details (optional)
The text was updated successfully, but these errors were encountered: