2b298d5469
Changed search bar to use flexbox instead of `calc()` Fixed a bug with focus after the palette jumps Do not treat search results as unsaved files Use localization (fixes #458)
115 lines
No EOL
6.3 KiB
JSON
115 lines
No EOL
6.3 KiB
JSON
[
|
|
{
|
|
"label": "menuFile",
|
|
"sub": [
|
|
{ "label": "menuNewFile", "command": "session:new-file" },
|
|
{ "label": "menuOpenFile", "command": "session:open-file" },
|
|
{ "label": "menuSave", "command": "session:save-file" },
|
|
{ "label": "menuSaveAs", "command": "session:save-file-as" },
|
|
{ "label": "menuRevert", "command": "session:revert-file" },
|
|
{ "label": "menuClose", "command": "session:close-tab" },
|
|
{ "label": "menuPrint", "command": "editor:print" },
|
|
{ "label": "menuExit", "command": "app:exit" }
|
|
]
|
|
},
|
|
{
|
|
"label": "menuEdit",
|
|
"sub": [
|
|
{ "label": "menuUndo", "command": "ace:command", "argument": "undo" },
|
|
{ "label": "menuRedo", "command": "ace:command", "argument": "redo" },
|
|
"divider",
|
|
{ "label": "menuInsertFromFile", "command": "session:insert-from-file" },
|
|
{ "label": "menuSelectWord", "command": "ace:command", "argument": "selectMoreAfter" },
|
|
{ "label": "menuSelectLine", "command": "ace:command", "argument": "expandtoline" },
|
|
{ "label": "menuSelectP", "command": "sublime:expand-to-paragraph" },
|
|
{ "label": "menuSelectToMatch", "command": "sublime:expand-to-matching" },
|
|
{ "label": "menuWrapToPrint", "command": "sublime:wrap" },
|
|
"divider",
|
|
{ "label": "menuFind", "command": "ace:command", "argument": "find" },
|
|
{ "label": "menuFindReplace", "command": "ace:command", "argument": "replace" },
|
|
{ "label": "menuFindNext", "command": "ace:command", "argument": "findnext" },
|
|
{ "label": "menuSearchProject", "command": "searchbar:show-project-search", "retainFocus": true },
|
|
"divider",
|
|
{ "label": "menuToggleComment", "command": "ace:command", "argument": "togglecomment" },
|
|
{ "label": "menuBlockComment", "command": "ace:command", "argument": "toggleBlockComment" },
|
|
{ "label": "menuTabsToSpaces", "command": "sublime:tabs-to-spaces" },
|
|
{ "label": "menuSpacesToTabs", "command": "sublime:spaces-to-tabs" },
|
|
{ "label": "menuSetNewline",
|
|
"sub": [
|
|
{ "label": "UNIX", "command": "ace:set-newline-mode", "argument": "unix" },
|
|
{ "label": "Windows", "command": "ace:set-newline-mode", "argument": "windows" }
|
|
]
|
|
},
|
|
{ "label": "menuTrimWhitespace", "command": "ace:trim-whitespace" },
|
|
"divider",
|
|
{ "label": "menuSortLines", "command": "ace:command", "argument": "sortlines" },
|
|
{ "label": "menuJoinLines", "command": "ace:command", "argument": "joinlines" },
|
|
{ "label": "menuSplitLine", "command": "ace:command", "argument": "splitline" },
|
|
{ "label": "menuToUppercase", "command": "ace:command", "argument": "touppercase" },
|
|
{ "label": "menuToLowercase", "command": "ace:command", "argument": "tolowercase" },
|
|
{ "label": "menuMoveLinesUp", "command": "ace:command", "argument": "movelinesup" },
|
|
{ "label": "menuMoveLinesDown", "command": "ace:command", "argument": "movelinesdown" }
|
|
]
|
|
},
|
|
{
|
|
"label": "menuTools",
|
|
"sub": [
|
|
{ "label": "menuGoToAnything", "command": "palette:open", "retainFocus": true },
|
|
{ "label": "menuGoToLine", "command": "palette:open", "argument": "line", "retainFocus": true },
|
|
{ "label": "menuGoToSearch", "command": "palette:open", "argument": "search", "retainFocus": true },
|
|
{ "label": "menuGoToRef", "command": "palette:open", "argument": "reference", "retainFocus": true },
|
|
{ "label": "menuCommandPalette", "command": "palette:open", "argument": "command", "retainFocus": true },
|
|
"divider",
|
|
{ "label": "menuToggleMacro", "command": "ace:togglemacro" },
|
|
{ "label": "menuReplayMacro", "command": "ace:command", "argument": "replaymacro" },
|
|
{ "label": "menuWordCount", "command": "editor:word-count" }
|
|
]
|
|
},
|
|
{
|
|
"label": "menuProject",
|
|
"sub": [
|
|
{ "label": "menuAddDir", "command": "project:add-dir" },
|
|
{ "label": "menuRemoveAllDirs", "command": "project:remove-all" },
|
|
{ "label": "menuRefreshDir", "command": "project:refresh-dir" },
|
|
"divider",
|
|
{ "label": "menuSaveProject", "command": "project:generate" },
|
|
{ "label": "menuEditProject", "command": "project:edit" },
|
|
{ "label": "menuOpenProject", "command": "project:open" },
|
|
{ "label": "menuClearProject", "command": "project:clear" }
|
|
]
|
|
},
|
|
{
|
|
"label": "menuSettings",
|
|
"sub": [
|
|
{ "label": "menuUserPrefs", "command": "session:open-settings-file", "argument": "user" },
|
|
{ "label": "menuKeyboard", "command": "session:open-settings-file", "argument": "keys" },
|
|
{ "label": "menuMenus", "command": "session:open-settings-file", "argument": "menus" },
|
|
{ "label": "menuAPI", "command": "session:open-settings-file", "argument": "api" },
|
|
{ "label": "menuTheme", "command": "session:open-settings-file", "argument": "theme" },
|
|
"divider",
|
|
{ "label": "menuDefaults",
|
|
"sub": [
|
|
{ "label": "menuUserPrefs", "command": "session:open-settings-defaults", "argument": "user", "palette": "menuUserPrefsDefault" },
|
|
{ "label": "menuKeyboard", "command": "session:open-settings-defaults", "argument": "keys", "palette": "menuKeyboardDefault" },
|
|
{ "label": "menuMenus", "command": "session:open-settings-defaults", "argument": "menus", "palette": "menuMenusDefault" },
|
|
{ "label": "menuTheme", "command": "session:open-settings-defaults", "argument": "theme", "palette": "menuThemeDefault" }
|
|
]
|
|
},
|
|
{ "label": "menuReset",
|
|
"sub": [
|
|
{ "label": "menuUserPrefs", "command": "settings:delete-local", "argument": "user", "palette": "menuResetUserPrefs" },
|
|
{ "label": "menuKeyboard", "command": "settings:delete-local", "argument": "keys", "palette": "menuResetKeyboard" },
|
|
{ "label": "menuMenus", "command": "settings:delete-local", "argument": "menus", "palette": "menuResetMenus" },
|
|
{ "label": "menuTheme", "command": "settings:delete-local", "argument": "theme", "palette": "menuResetTheme" },
|
|
"divider",
|
|
{ "label": "menuEmergencyReset", "command": "settings:emergency-reset" }
|
|
]
|
|
},
|
|
"divider",
|
|
{ "label": "menuHelp", "command": "app:browse", "argument": "https:\/\/github.com\/thomaswilburn\/Caret\/wiki" },
|
|
{ "label": "menuCheckForUpdates", "command": "app:check-for-updates", "argument": "manual" },
|
|
{ "label": "menuAboutCaret", "command": "app:about", "retainFocus": true }
|
|
]
|
|
}
|
|
|
|
] |