-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
720 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// This file is part of Notepad++ project | ||
// Copyright (C)2021 Don HO <[email protected]> | ||
// Copyright (C)2022 Don HO <[email protected]> | ||
|
||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
|
@@ -36,7 +36,6 @@ | |
#define DWS_ICONTAB 0x00000001 // Icon for tabs are available | ||
#define DWS_ICONBAR 0x00000002 // Icon for icon bar are available (currently not supported) | ||
#define DWS_ADDINFO 0x00000004 // Additional information are in use | ||
#define DWS_USEOWNDARKMODE 0x00000008 // Use plugin's own dark mode | ||
#define DWS_PARAMSALL (DWS_ICONTAB|DWS_ICONBAR|DWS_ADDINFO) | ||
|
||
// default docking values for first call of plugin | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// This file is part of Notepad++ project | ||
// Copyright (C)2021 Don HO <[email protected]> | ||
// Copyright (C)2024 Don HO <[email protected]> | ||
|
||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
|
@@ -15,12 +15,15 @@ | |
// along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
|
||
|
||
// For more comprehensive information on plugin communication, please refer to the following resource: | ||
// https://npp-user-manual.org/docs/plugin-communication/ | ||
|
||
#pragma once | ||
|
||
#include "Scintilla.h" | ||
#include "Notepad_plus_msgs.h" | ||
|
||
const int nbChar = 64; | ||
|
||
typedef const TCHAR * (__cdecl * PFUNCGETNAME)(); | ||
|
||
|
@@ -45,19 +48,21 @@ struct ShortcutKey | |
UCHAR _key = 0; | ||
}; | ||
|
||
const int menuItemSize = 64; | ||
|
||
struct FuncItem | ||
{ | ||
FuncItem(const TCHAR* itemName = NULL, PFUNCPLUGINCMD pFunc = NULL, | ||
bool init2Check = false, ShortcutKey* pShKey = NULL) : | ||
_pFunc(pFunc), _init2Check(init2Check), _pShKey(pShKey) | ||
{ | ||
if (itemName != NULL) | ||
_tcscpy_s(_itemName, nbChar, itemName); | ||
_tcscpy_s(_itemName, menuItemSize, itemName); | ||
else | ||
_itemName[0] = 0; | ||
} | ||
|
||
TCHAR _itemName[nbChar] = { '\0' }; | ||
TCHAR _itemName[menuItemSize] = { '\0' }; | ||
PFUNCPLUGINCMD _pFunc = nullptr; | ||
int _cmdID = 0; | ||
bool _init2Check = false; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// This file is part of Notepad++ project | ||
// Copyright (C)2021 Don HO <[email protected]> | ||
// Copyright (C)2024 Don HO <[email protected]> | ||
|
||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
|
@@ -171,6 +171,16 @@ | |
#define IDM_EDIT_COPY_ALL_NAMES (IDM_EDIT + 87) | ||
#define IDM_EDIT_COPY_ALL_PATHS (IDM_EDIT + 88) | ||
#define IDM_EDIT_BEGINENDSELECT_COLUMNMODE (IDM_EDIT + 89) | ||
#define IDM_EDIT_MULTISELECTALL (IDM_EDIT + 90) | ||
#define IDM_EDIT_MULTISELECTALLMATCHCASE (IDM_EDIT + 91) | ||
#define IDM_EDIT_MULTISELECTALLWHOLEWORD (IDM_EDIT + 92) | ||
#define IDM_EDIT_MULTISELECTALLMATCHCASEWHOLEWORD (IDM_EDIT + 93) | ||
#define IDM_EDIT_MULTISELECTNEXT (IDM_EDIT + 94) | ||
#define IDM_EDIT_MULTISELECTNEXTMATCHCASE (IDM_EDIT + 95) | ||
#define IDM_EDIT_MULTISELECTNEXTWHOLEWORD (IDM_EDIT + 96) | ||
#define IDM_EDIT_MULTISELECTNEXTMATCHCASEWHOLEWORD (IDM_EDIT + 97) | ||
#define IDM_EDIT_MULTISELECTUNDO (IDM_EDIT + 98) | ||
#define IDM_EDIT_MULTISELECTSSKIP (IDM_EDIT + 99) | ||
|
||
#define IDM_EDIT_AUTOCOMPLETE (50000 + 0) | ||
#define IDM_EDIT_AUTOCOMPLETE_CURRENTFILE (50000 + 1) | ||
|
@@ -251,6 +261,10 @@ | |
#define IDM_SEARCH_MARKONEEXT4 (IDM_SEARCH + 65) | ||
#define IDM_SEARCH_MARKONEEXT5 (IDM_SEARCH + 66) | ||
|
||
#define IDM_SEARCH_CHANGED_NEXT (IDM_SEARCH + 67) | ||
#define IDM_SEARCH_CHANGED_PREV (IDM_SEARCH + 68) | ||
#define IDM_SEARCH_CLEAR_CHANGE_HISTORY (IDM_SEARCH + 69) | ||
|
||
#define IDM_MISC (IDM + 3500) | ||
#define IDM_DOCLIST_FILESCLOSE (IDM_MISC + 1) | ||
#define IDM_DOCLIST_FILESCLOSEOTHERS (IDM_MISC + 2) | ||
|
@@ -374,6 +388,8 @@ | |
#define IDM_VIEW_TAB_COLOUR_3 (IDM_VIEW + 113) | ||
#define IDM_VIEW_TAB_COLOUR_4 (IDM_VIEW + 114) | ||
#define IDM_VIEW_TAB_COLOUR_5 (IDM_VIEW + 115) | ||
#define IDM_VIEW_TAB_START (IDM_VIEW + 116) | ||
#define IDM_VIEW_TAB_END (IDM_VIEW + 117) | ||
|
||
#define IDM_VIEW_NPC (IDM_VIEW + 130) | ||
#define IDM_VIEW_NPC_CCUNIEOL (IDM_VIEW + 131) | ||
|
@@ -382,7 +398,8 @@ | |
#define IDM_VIEW_CLONE_TO_ANOTHER_VIEW 10002 | ||
#define IDM_VIEW_GOTO_NEW_INSTANCE 10003 | ||
#define IDM_VIEW_LOAD_IN_NEW_INSTANCE 10004 | ||
|
||
#define IDM_VIEW_GOTO_START 10005 | ||
#define IDM_VIEW_GOTO_END 10006 | ||
|
||
#define IDM_FORMAT (IDM + 5000) | ||
#define IDM_FORMAT_TODOS (IDM_FORMAT + 1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters