[ { "label": "File", "sub": [ { "label": "New File", "command": "session:new-file" }, { "label": "Open File", "command": "session:open-file" }, { "label": "Save", "command": "session:save-file" }, { "label": "Save As", "command": "session:save-file-as" }, { "label": "Close", "command": "session:close-tab" }, { "label": "Exit", "command": "app:exit" } ] }, { "label": "Edit", "sub": [ { "label": "Redo", "command": "ace:command", "argument": "redo" }, { "label": "Record Macro", "command": "ace:command", "argument": "togglerecording" }, { "label": "Reply Macro", "command": "ace:command", "argument": "replaymacro" }, "divider", { "label": "Toggle Comment", "command": "ace:command", "argument": "togglecomment" }, { "label": "Block Comment", "command": "ace:command", "argument": "toggleBlockComment" }, { "label": "Select to Matching", "command": "ace:command", "argument": "selecttomatching" }, /* folding goes here, once it works */ "divider", { "label": "Sort Lines", "command": "ace:command", "argument": "sortlines" }, { "label": "Split Line", "command": "ace:command", "argument": "splitline" }, { "label": "To Uppercase", "command": "ace:command", "argument": "touppercase" }, { "label": "To Lowercase", "command": "ace:command", "argument": "tolowercase" } ] }, { "label": "Settings", "sub": [ { "label": "User Settings", "command": "session:open-settings-file", "argument": "user" }, { "label": "Keyboard", "command": "session:open-settings-file", "argument": "keys" }, { "label": "Menus", "command": "session:open-settings-file", "argument": "menus" }, "divider", { "label": "Reset to Default ▶", "sub": [ { "label": "User Settings", "command": "settings:delete-local", "argument": "user" }, { "label": "Keyboard", "command": "settings:delete-local", "argument": "keys" }, { "label": "Menus", "command": "settings:delete-local", "argument": "menus" } ] } ] } ]