New NPPN_GLOBALMODIFIED notification
-
New
NPPN_GLOBALMODIFIEDnotification is implemented for the (future) release v8.6.5This 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 zeroThe 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 (includingSCN_MODIFIED) are disabled during Replace All action. Hence plugins won’t getSCN_MODIFIEDwhile 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 monitoringSCN_MODIFIEDfor doing some stuff, then you need to addNPPN_GLOBALMODIFIEDbeside ofSCN_MODIFIEDand make it do the same treatment.
Otherwise, you can just ignore this notification.How to test my modified plugin?
The newNPPN_GLOBALMODIFIEDnotification message has been implemented and merged into Notepad++ repository master branch:
https://github.com/notepad-plus-plus/notepad-plus-plusDownload 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. -
D donho referenced this topic on
-
D donho referenced this topic on
-
D donho referenced this topic on
-
D donho referenced this topic on
-
D donho unpinned this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login