Community
    • Login

    New NPPN_GLOBALMODIFIED notification

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    1 Posts 1 Posters 3.7k Views
    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.
    • donhoD
      donho
      last edited by donho

      New NPPN_GLOBALMODIFIED notification is implemented for the (future) release v8.6.5

      This notification message notifies plugins that the current document is just modified by Replace All action.

      //scnNotification->nmhdr.code = NPPN_GLOBALMODIFIED;
      //scnNotification->nmhdr.hwndFrom = BufferID;
      //scnNotification->nmhdr.idFrom = 0; // preserved for the future use, must be zero
      

      The context:
      The Replace All performance issue which has been fixed in v8.6.3 / v8.6.4.
      For solving the issue, all the Scintilla’s notifications (including SCN_MODIFIED) are disabled during Replace All action. Hence plugins won’t get SCN_MODIFIED while Replace All operations. To remedy this problem, Notepad++ triggers NPPN_GLOBALMODIFIED at the end of Replace All action, if there’s any modification during the action.

      Which plugins need to implement this notification?
      If your plugin is monitoring SCN_MODIFIED for doing some stuff, then you need to add NPPN_GLOBALMODIFIED beside of SCN_MODIFIED and make it do the same treatment.
      Otherwise, you can just ignore this notification.

      How to test my modified plugin?
      The new NPPN_GLOBALMODIFIED notification message has been implemented and merged into Notepad++ repository master branch:
      https://github.com/notepad-plus-plus/notepad-plus-plus

      Download the CI binary (notepad++.exe) of any latest commit and test with your modified plugin.
      Once you’ve tested with Replace All and no bug found, your plugin is ready for Notepad++ v8.6.5. You can increase your plugins’ version, release it, then update Notepad++ Plugin List.

      1 Reply Last reply Reply Quote 7
      • donhoD donho referenced this topic on
      • donhoD donho referenced this topic on
      • donhoD donho referenced this topic on
      • donhoD donho referenced this topic on
      • donhoD donho unpinned this topic on
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors