Hi, I want to override standard auto-complete feature to show my own popup list. To do that I need to handle autocomplete event. It seems current version of the plugin does not support such an event?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It does, but in the current version the documentation is lacking. Also, there's a bug that cancelling the event from within the event handler can cause a crash - you may need to do this for autocomplete processing.
The notifications are handled in exactly the same way as the Notepad object callbacks, but the enum is "ScintillaNotification" - in the new version the case has changed to "SCINTILLANOTIFICATION".
def handleAutocompleteCancelled(args):
# your code here
pass
editor.callback(handleAutocompleteCancelled, [ScintillaNotification.AUTOCCANCELLED])
Thank you Dave for your work. My colleagues use SciTE with Lua embedded but I really like N++ and keep using it awaiting for a good scripting plugin like yours.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I want to override standard auto-complete feature to show my own popup list. To do that I need to handle autocomplete event. It seems current version of the plugin does not support such an event?
It does, but in the current version the documentation is lacking. Also, there's a bug that cancelling the event from within the event handler can cause a crash - you may need to do this for autocomplete processing.
The notifications are handled in exactly the same way as the Notepad object callbacks, but the enum is "ScintillaNotification" - in the new version the case has changed to "SCINTILLANOTIFICATION".
Both issues are fixed in source, and a new version will be out shortly. In the meantime, you can download a testing version from http://github.com/davegb3/PythonScript/downloads.
The only thing left before the new version is released is to integrate with the new features of N++ 5.7.1 for dynamic menus - I'm working on it!
Hope that helps,
Dave.
Thank you Dave for your work. My colleagues use SciTE with Lua embedded but I really like N++ and keep using it awaiting for a good scripting plugin like yours.
Glad you like it - personally I think Python is nicer than Lua. Good luck converting your colleagues :)