Skip to content

Commit 6725f6d

Browse files
committed
Changed 'stringify' to 'compress' due to confusing
1 parent ac2943a commit 6725f6d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

NppJSONViewer/PluginDefinition.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ void commandMenuInit()
7878
formatJSONsk->_isShift = TRUE;
7979
formatJSONsk->_key = 'M';
8080

81-
ShortcutKey* stringifyJSONsk = new ShortcutKey();
82-
stringifyJSONsk->_isAlt = TRUE;
83-
stringifyJSONsk->_isCtrl = TRUE;
84-
stringifyJSONsk->_isShift = TRUE;
85-
stringifyJSONsk->_key = 'S';
81+
ShortcutKey* compressJSONsk = new ShortcutKey();
82+
compressJSONsk->_isAlt = TRUE;
83+
compressJSONsk->_isCtrl = TRUE;
84+
compressJSONsk->_isShift = TRUE;
85+
compressJSONsk->_key = 'C';
8686
setCommand(0, TEXT("Show &JSON Viewer"), openJSONDialog, openJSONsk, false);
8787
setCommand(1, TEXT("&Format JSON"), formatSelectedJSON, formatJSONsk, false);
88-
setCommand(2, TEXT("&Stringify JSON"), stringifySelectedJSON, stringifyJSONsk, false);
88+
setCommand(2, TEXT("&Compress JSON"), compressSelectedJSON, compressJSONsk, false);
8989
setCommand(3, TEXT("&About"), openAboutDlg, NULL, false);
9090
}
9191

@@ -280,7 +280,7 @@ void formatSelectedJSON()
280280
delete[] curJSON;
281281
}
282282

283-
void stringifySelectedJSON()
283+
void compressSelectedJSON()
284284
{
285285
// Get the current scintilla
286286
int which = -1;

NppJSONViewer/PluginDefinition.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ bool setCommand(size_t index, TCHAR *cmdName, PFUNCPLUGINCMD pFunc, ShortcutKey
7373
void openJSONDialog();
7474
void openAboutDlg();
7575
void formatSelectedJSON();
76-
void stringifySelectedJSON();
76+
void compressSelectedJSON();
7777
#define CUSTOM_MARK_ERROR (WM_USER + 1)
7878

7979
#endif //PLUGINDEFINITION_H

0 commit comments

Comments
 (0)