Word search on net
-
Hi
Is it possible to make word search like in the “Wikipedia search” but to custom site?thx!
-
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.
-
Yes I think it’s doable , how do I create the command?
-
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.
-
Sweet, works perfectly :)
ty!