Adding search via contextual menu (short cut)
Brought to you by:
mattes432
Hi there, first of all I'd like to show how grateful am I for this plug ig, which is a real killer application.
I rember to have asked this long time ago, but I don't find the request anymore, so here I'm.
Since I use this plugin quite a lot, it would be very time saving to let the user add a highlighted string to search pattern just by right clicking the mouse and selecting the related voice in contextual menu (thus a keyboard shortcut for programmers who just don't stop typing).
Thank you so much
Anonymous
Hello Frederico,
thanks for the nice words! Makes me always happy to hear that :-)
Your request is in the closed list https://sourceforge.net/p/analyseplugin/bugs/21/
Because I mplemented it :-)
Unfortunately I wasn't able to do a final release test for version 1.10 which is the reason not having it released yet. But It would be nice to hear about your acceptance test for the same.
The feature uses the NPP defined way of context menu. (Read the changes text and help man)
Let me know your thoughts.
Best regards
Mattes
Hi Mattes,
thanks a lot for the very quick answer! I just tried and plugin works greatly.
I just did a couple of customizations:
First of all I added a couple of shortcut: Run menu -> Modify Shortcut/Delete Command will pop up a new window and choose the plugin commands tab. Then i added CTRL + SHIFT + A to activate the Analyse Plugin and CRTL + SHIFT + D to add the pattern.
I just miss the search shortcut. Is any way to add it, as far as you know?
This is the second hack: in Settings menu -> Edit Popup ContextMenu, I edited the contextMenu.xml tight after this line:
In this way:
but it seems that PluginEntryName is not correct.
Could you help me on this?
Keep on with this great work! You should spread this, since it's can make a real difference in a useful text editor (and I'm working on Linux too)
Last edit: Federico 2015-12-21
Hi Frederico,
sounds like an easy task. I'll check ...
Regards, Mattes
Implemented in V1.10
Hi Mattes, sorry to bother, I just updated officially Notepad++ and I found that CTRL+SHIFT+D shortcut is not anymore invoking the "add pattern" action but "show help dialog". This is reducing the functionality of the plug in. May I suggest to re-introduce the "add pattern" voice in Run menu -> Modify Shortcut/Delete Command window? Also adding the "search" voice, so it can addedd as shortcut would be very helpful.
Last question, have you found any way to configure contextMenu.xml correctly?
Thanks a lot for all you effort!
Hello Frederico,
just one question: Did you test it with the new preview version or the default download?
Please check the version in use, which should be 1.10 at least.
here is a direct link to R31 http://sourceforge.net/projects/analyseplugin/files/binaries/v01.10-R31.zip/download (I did not yet update the defaults as there was one unpleaseant jumping found on double-click.)
Sorry for inconvenience.
Mattes
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Hi Mattes,
it seems tha updating the plugins somewhat reverted the file. Now using the .dll v1.10-R31 is working as expected as well as shortcuts.
Well done!
Thanks again for all,
Federico