Skip to content

Implement Search Google context menu feature#276

Closed
qwldcl-del wants to merge 1 commit intotermy-org:mainfrom
qwldcl-del:improve-google-search
Closed

Implement Search Google context menu feature#276
qwldcl-del wants to merge 1 commit intotermy-org:mainfrom
qwldcl-del:improve-google-search

Conversation

@qwldcl-del
Copy link
Copy Markdown

Summary

This PR implements the 'Improve google' feature (Issue #275).

Changes:

  1. Added method in :

    • Gets selected text from terminal
    • URL-encodes the text for safe URL inclusion
    • Constructs Google search URL ()
    • Opens URL in default browser via platform-specific commands ( on Linux, on macOS, on Windows)
  2. Added to terminal context menu in :

    • Menu item is enabled when text is selected ()
    • Menu item is disabled when no text is selected
    • Updated menu dimensions to accommodate the new item
  3. Added dependency to

Before:

  • The was defined but never added to the context menu
  • The method was called but not implemented

After:

  • Right-clicking in the terminal with selected text shows 'Search Google' option
  • Clicking it opens the selected text searched on Google.com

Fixes #275

- Add execute_terminal_context_menu_search_google method that:
  - Gets selected text from terminal
  - URL-encodes the text for safe URL inclusion
  - Constructs Google search URL
  - Opens URL in default browser via xdg-open/open/cmd

- Add search_google_item to terminal context menu
  - Enabled when text is selected (can_copy)
  - Disabled otherwise

- Update menu dimensions to accommodate new item

Fixes: The Search Google menu item was defined but never added to the menu, and the execute method was not implemented.
@bountydotnew
Copy link
Copy Markdown

bountydotnew bot commented Mar 22, 2026

@qwldcl-del bounty.new is in early access. Link your GitHub account at https://bounty.new/integrations to get started.

@github-actions github-actions bot closed this Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve google

1 participant