Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • Thomas KnoefelT

      [New Plugin] MultiReplace

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      99
      3 Votes
      99 Posts
      102k Views
      Alan KilbornA
      @guy038 said: F4 and Shift+F4 I think you may be overthinking the situation. Maybe you think about it purely as a user, whereas I tend to think about it as a coder first. When the MultiReplace Search Results has input focus, MultiReplace code is in control. It can do anything it wants with keyboard input, e.g. processing/consuming F4 and Shift+F4. Notepad++ processing and ShortcutMapper are not involved. When other parts of Notepad++ have input focus, e.g. a Scintilla editor window, Notepad++'s Search results window, etc., then keyboard input processing follows normal Notepad++ behavior, usually per ShortcutMapper rules.
    • M

      Using C++ standard library in Notepad++ plugins.

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      2
      0 Votes
      2 Posts
      95 Views
      CoisesC
      @matsnorberg: Notepad++ is compiled with static linking, and it’s best to do that for plugins as well. Right-click the project, select Properties, then C++ > Code Generation and set Runtime Library to /MT for Release builds and /MTd for debug builds. If you use the official plugin template, the supplied solution file already sets static linking. Note that this is OK because Notepad++ and plugins never pass C++ objects between one another. The plugin API is a pure C interface. The only time this might cause a problem is if your DLL links further DLLs which were compiled with dynamic linking. A side note: you might want to take a look at a project I created, NppCppMSVS: Visual Studio Project Template for a Notepad++ C++ Plugin. It’s a template you can add to Visual Studio so that you can easily start a new plugin project directly from Visual Studio. As noted in the readme, This project is not a part of Notepad++ and is not endorsed by the author of Notepad++. With that understanding, you might want to take a look at its documentation and see if you think it would be an easier place to start than the official plugin template (which is a GitHub template, not a Visual Studio template).