New NPPN_GLOBALMODIFIED notification
-
New
NPPN_GLOBALMODIFIED
notification 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 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 (includingSCN_MODIFIED
) are disabled during Replace All action. Hence plugins won’t getSCN_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 monitoringSCN_MODIFIED
for doing some stuff, then you need to addNPPN_GLOBALMODIFIED
beside ofSCN_MODIFIED
and make it do the same treatment.
Otherwise, you can just ignore this notification.How to test my modified plugin?
The newNPPN_GLOBALMODIFIED
notification 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. -
-
-
-
-