Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Word search on net

    Help wanted · · · – – – · · ·
    2
    5
    812
    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.
    • General Coder
      General Coder last edited by

      Hi
      Is it possible to make word search like in the “Wikipedia search” but to custom site?

      thx!

      Scott Sumner 1 Reply Last reply Reply Quote 0
      • Scott Sumner
        Scott Sumner @General Coder last edited by

        @General-Coder

        Well, maybe…it depends upon what the custom site you are talking about takes as input.

        The Wikipedia search function in Notepad++ works because its (Wikipedia’s) site understands this syntax:

        https://en.wikipedia.org/wiki/Special:Search?search=foo

        where foo is the thing to “look up” on the site.

        Thus it is a simple matter for the following command to be created in Notepad++ to allow the functionality of searching for the currently-selected word:

        https://en.wikipedia.org/wiki/Special:Search?search=$(CURRENT_WORD)

        If the site you are talking about works similarly, then it is easy. If not, it gets tougher, but something could be scripted with a scripting plugin.

        1 Reply Last reply Reply Quote 3
        • General Coder
          General Coder last edited by

          Yes I think it’s doable , how do I create the command?

          Scott Sumner 1 Reply Last reply Reply Quote 0
          • Scott Sumner
            Scott Sumner @General Coder last edited by

            @General-Coder

            Look in shortcuts.xml to see how the Wikipedia one is done. The create a new entry like that but with your custom stuff in it. Restart Notepad++ to pick up changes to shortcuts.xml.

            1 Reply Last reply Reply Quote 2
            • General Coder
              General Coder last edited by

              Sweet, works perfectly :)
              ty!

              1 Reply Last reply Reply Quote 2
              • First post
                Last post
              Copyright © 2014 NodeBB Forums | Contributors