Add compact mode, toggle with 'c'
This commit is contained in:
@ -216,6 +216,12 @@ class Editor
|
||||
$this->redrawEditor();
|
||||
break;
|
||||
|
||||
case "c":
|
||||
Settings::$compactGroups = !Settings::$compactGroups;
|
||||
$this->list->parseTree();
|
||||
$this->redrawEditor();
|
||||
break;
|
||||
|
||||
case "\x0e": // ctrl-n
|
||||
$this->document->load((object)[]);
|
||||
$this->list->parseTree();
|
||||
@ -359,6 +365,8 @@ class Editor
|
||||
e Edit selected value
|
||||
E Edit selected key
|
||||
D Delete selected key
|
||||
c Toggle compact list view
|
||||
q Toggle quoted keys in list view
|
||||
^W Write to file
|
||||
^R Read from file
|
||||
^N New document with empty object
|
||||
|
Reference in New Issue
Block a user