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
// int NPPM_GETNPPSETTINGSDIRPATH(size_t strLen, wchar_t *settingsDirPath)
1030
+
// Get path for the active Notepad++ settings: it will use -settingsDir path if that's defined; if not, it will use Cloud directory if that's defined;
1031
+
// if not, it will use the AppData settings directory, or finally the installation path. This allows plugins to have one interface to find out
1032
+
// where the active Notepad++ settings are stored, whichever location they are currently set to.
1033
+
// wParam[in]: strLen - size of allocated buffer "settingsDirPath"
1034
+
// lParam[out]: settingsDirPath - Users should call it with settingsDirPath be NULL to get the required number of wchar_t (not including the terminating nul character),
1035
+
// allocate settingsDirPath buffer with the return value + 1, then call it again to get the path.
1036
+
// Returns the number of wchar_t copied/to copy. If the return value is 0, then the "strLen" is not enough to copy the path, or the settings path could not be determined.
1037
+
//
1038
+
// Note: This message is for the active Notepad++ configuration location. If you are looking for the settings directory for plugins (...\Plugins\Config\),
#defineNPPN_CMDLINEPLUGINMSG (NPPN_FIRST + 28) // To notify plugins that the new argument for plugins (via '-pluginMessage="YOUR_PLUGIN_ARGUMENT"' in command line) is available
1240
+
#defineNPPN_CMDLINEPLUGINMSG (NPPN_FIRST + 28) // To notify plugins that there are plugin arguments pluginMessage (wchar_t*) is available
// The full string (wchar_t*) will be delivered to all plugins via the NPPN_CMDLINEPLUGINMSG notification. Each plugins can parse and extract the arguments relevant to itself.
1249
+
//
1250
+
// To avoid the collisions among plugins, the following protocol should be followed:
1251
+
// 1. Each plugin must use its unique namespace (its folder name in plugins directory) as a prefix for its argument names.
1252
+
// 2. The symbol ';' must be used as the delimiter between arguments when there are 2 or more arguments in the pluginMessage string.
1253
+
// 3. The symbol '=' must be used as delimiter between argument names and their values.
0 commit comments