Community
    • Login

    Can I have multiple ‘Search Engine’ in the context menu?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 235 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Arjen van den BroeckeA
      Arjen van den Broecke
      last edited by

      … each with their own base URL to specify a search.

      1 Reply Last reply Reply Quote 0
      • andrecool-68A
        andrecool-68
        last edited by

        Do you mean searching the highlighted phrase on the Internet?
        Here’s my example:
        These are the lines in the shortcuts.xml file

        		<Command name="Search htmlbook.ru" Ctrl="no" Alt="no" Shift="no" Key="0">http://htmlbook.ru/sites/search/?q=$(CURRENT_WORD)</Command>
        		<Command name="Search htmlbook.ru++" Ctrl="no" Alt="no" Shift="no" Key="0">https://webref.ru/search/?q=$(CURRENT_WORD)</Command>
        		<Command name="Search w3schools.com" Ctrl="no" Alt="no" Shift="no" Key="0">https://www.w3schools.com/search/?q=$(CURRENT_WORD)</Command>
        		<Command name="Google Translate" Ctrl="no" Alt="no" Shift="no" Key="0">https://translate.google.com/?q=$(CURRENT_WORD)</Command>
        		<Command name="Search Microsoft Update Catalog" Ctrl="no" Alt="no" Shift="no" Key="0">https://www.catalog.update.microsoft.com/Search.aspx?q=$(CURRENT_WORD)</Command>
        

        These are the lines in the contextMenu.xml file

        		<Item FolderName="Найти в Интернете" MenuEntryName="Edit" MenuItemName="Search on Internet" ItemNameAs="Найти в www.Google.com"/>
        		<Item FolderName="Найти в Интернете" MenuEntryName="Run" MenuItemName="Search Microsoft Update Catalog" ItemNameAs="Найти в Каталоге Microsoft"/>
        

        Безымянный.png

        1 Reply Last reply Reply Quote 6
        • Arjen van den BroeckeA
          Arjen van den Broecke
          last edited by

          It took me some time to figure out what you did there (I am new to NPP …) - but yes! that is exactly what I was looking for!
          Thank you so much for your kind help.

          1 Reply Last reply Reply Quote 3
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors