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
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,9 @@ void export_notepad()
28
28
.def("getCurrentLang", &NotepadPlusWrapper::getCurrentLangType, "Get the current language type (returns the LANGTYPE.xxx constants)")
29
29
.def("setCurrentLang", &NotepadPlusWrapper::setCurrentLangType, "Set the current language type (use LANGTYPE.xxx constants)")
30
30
.def("getFiles", &NotepadPlusWrapper::getFiles, "Gets a list of the open filenames, as a list of tuples (filename, bufferID, index, view)")
31
+
.def("loadSession", &NotepadPlusWrapper::loadSession, "Loads a session from a session file")
31
32
.def("saveSession", &NotepadPlusWrapper::saveSession, "Saves a session file with the list of files (sessionFilename, filesList)")
33
+
.def("getSessionFiles", &NotepadPlusWrapper::getSessionFiles, "Gets a list of files within a session file")
32
34
.def("saveCurrentSession", &NotepadPlusWrapper::saveCurrentSession, "Save the current session (filename)")
33
35
.def("createScintilla", &NotepadPlusWrapper::createScintilla, "Create a new Scintilla handle. Returns a Buffer object")
34
36
.def("destroyScintilla", &NotepadPlusWrapper::destroyScintilla, "Destroy a Scintilla handle created with createScintilla")
@@ -51,6 +53,8 @@ void export_notepad()
51
53
.def("setLangType", &NotepadPlusWrapper::setBufferLangType, "Sets the language type of the current buffer. Pass a buffer ID as the second parameter to set the language for a specific buffer.")
52
54
.def("getEncoding", &NotepadPlusWrapper::getEncoding, "Gets the encoding of the current buffer. Pass a buffer ID to get the encoding of a specific buffer.")
53
55
.def("getEncoding", &NotepadPlusWrapper::getBufferEncoding, "Gets the encoding of the current buffer. Pass a buffer ID to get the encoding of a specific buffer.")
56
+
.def("setEncoding", &NotepadPlusWrapper::setEncoding, "Sets the encoding of the current buffer. Pass a buffer ID to set the encoding of a specific buffer.")
57
+
.def("setEncoding", &NotepadPlusWrapper::setBufferEncoding, "Sets the encoding of the current buffer. Pass a buffer ID to set the encoding of a specific buffer.")
54
58
.def("getFormatType", &NotepadPlusWrapper::getFormatType, "Gets the format type (i.e. Windows, Unix or Mac) of the current buffer. Pass a buffer ID to get the format type of a specific buffer.")
55
59
.def("getFormatType", &NotepadPlusWrapper::getBufferFormatType, "Gets the format type (i.e. Windows, Unix or Mac) of the current buffer. Pass a buffer ID to get the format type of a specific buffer.")
56
60
.def("setFormatType", &NotepadPlusWrapper::setFormatType, "Sets the format type (i.e. Windows, Unix or Mac) of the current buffer - use the FORMATTYPE enum. Pass a buffer ID as the second parameter to set the format type of a specific buffer.")
0 commit comments