Menu

#28 Adding search via contextual menu (short cut)

1.10
closed-fixed
nobody
None
Feature
5
2016-01-15
2015-12-18
Federico
No

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

Discussion

  • Mattes H.

    Mattes H. - 2015-12-18

    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

     
  • Federico

    Federico - 2015-12-21

    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:

        To add plugin commands, you have to use PluginEntryName and PluginCommandItemName to localize the plugin commands
        -->
    

    In this way:

        <Item FolderName="Plugin commands" PluginEntryName="Analyse Plugin" PluginCommandItemName="Add selection as patterns" />
        <Item FolderName="Plugin commands" PluginEntryName="Analyse Plugin" PluginCommandItemName="Search" />
    

    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
  • Mattes H.

    Mattes H. - 2015-12-26

    Hi Frederico,
    sounds like an easy task. I'll check ...
    Regards, Mattes

     
  • Mattes H.

    Mattes H. - 2015-12-26
    • summary: Adding pattern via contextual menu --> Adding search via contextual menu (short cut)
    • status: open --> accepted
    • Group: 1.9 --> 1.10
     
  • Mattes H.

    Mattes H. - 2016-01-03

    Implemented in V1.10

     
  • Mattes H.

    Mattes H. - 2016-01-03
    • status: accepted --> closed-fixed
     
  • Mattes H.

    Mattes H. - 2016-01-03
    • status: closed-fixed --> closed
     
  • Mattes H.

    Mattes H. - 2016-01-03
    • status: closed --> closed-fixed
     
  • Federico

    Federico - 2016-01-08

    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!

     
  • Mattes H.

    Mattes H. - 2016-01-10

    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

     
  • Anonymous

    Anonymous - 2016-01-15

    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

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB