Community
    • Login

    Word search on net

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 2 Posters 1.2k 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.
    • General CoderG
      General Coder
      last edited by

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

      thx!

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS
        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 CoderG
          General Coder
          last edited by

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

          Scott SumnerS 1 Reply Last reply Reply Quote 0
          • Scott SumnerS
            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 CoderG
              General Coder
              last edited by

              Sweet, works perfectly :)
              ty!

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