Community
    • Login

    Word search on net

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 2 Posters 1.6k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              General Coder
              last edited by

              Sweet, works perfectly :)
              ty!

              1 Reply Last reply Reply Quote 2

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors