Caret/config/menus.json

59 lines
No EOL
2.7 KiB
JSON

[
{
"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": "Start/stop Macro Recording", "command": "ace:command", "argument": "togglerecording" },
{ "label": "Replay 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": "Move Lines Up", "command": "ace:command", "argument": "movelinesup" },
{ "label": "Move Lines Down", "command": "ace:command", "argument": "movelinesdown" }
]
},
{
"label": "Settings",
"sub": [
{ "label": "User Preferences", "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": "View Defaults",
"sub": [
{ "label": "User Preferences", "command": "session:open-settings-defaults", "argument": "user" },
{ "label": "Keyboard", "command": "session:open-settings-defaults", "argument": "keys" },
{ "label": "Menus", "command": "session:open-settings-defaults", "argument": "menus" }
]
},
{ "label": "Reset",
"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" }
]
},
"divider",
{ "label": "About Caret", "command": "app:about" }
]
}
]