You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PythonScript/src/NotepadPython.cpp
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,8 @@ void export_notepad()
55
55
.def("messageBox", &NotepadPlusWrapper::messageBox, "Displays a message box. messageBox(message, title, flags).\nFlags can be 0 for a standard 'OK' message box, or a combination of MessageBoxFlags")
56
56
.def("prompt", &NotepadPlusWrapper::promptDefault, "Prompts the user for some text. enteredText = prompt(prompt, title[, defaultText])")
57
57
.def("prompt", &NotepadPlusWrapper::prompt, "Prompts the user for some text. enteredText = prompt(prompt, title[, defaultText])")
58
+
.def("runPluginCommand", &NotepadPlusWrapper::runPluginCommand, "Runs a command from the plugin menu.\nUse to run direct commands from the Plugins menu.\nTo call TextFX or other menu functions, either use notepad.menuCommand() (for Notepad++ menu commands), or notepad.runMenuCommand(menuName, menuOption) for TextFX or non built-in menus.\nrunPluginCommand(pluginName, menuOptionTitle)")
59
+
.def("runMenuCommand", &NotepadPlusWrapper::runMenuCommand, "Runs a command from the menus. For built-in menus use notepad.menuCommand(), for non built-in menus (e.g. TextFX), use notepad.runMenuCommand(menuName, menuOption).\n runMenuCommand('TextFX Edit', 'Delete Blank Lines')")
58
60
.def("clearCallbacks", &NotepadPlusWrapper::clearAllCallbacks, "Clears all callbacks")
59
61
.def("clearCallbacks", &NotepadPlusWrapper::clearCallbackFunction, "Clears all callbacks for a given function")
60
62
.def("clearCallbacks", &NotepadPlusWrapper::clearCallbackEvents, "Clears all callbacks for the given list of events")
0 commit comments