darwin.cson 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. 'menu': [
  2. {
  3. label: 'Pulsar'
  4. submenu: [
  5. { label: 'About Pulsar', command: 'application:about' }
  6. { label: 'View License', command: 'application:open-license' }
  7. { label: 'VERSION', enabled: false }
  8. { label: 'Restart and Install Update', command: 'application:install-update', visible: false}
  9. { label: 'Check for Update', command: 'application:check-for-update', visible: false}
  10. { label: 'Checking for Update', enabled: false, visible: false}
  11. { label: 'Downloading Update', enabled: false, visible: false}
  12. { type: 'separator' }
  13. { label: 'Preferences…', command: 'application:show-settings' }
  14. { type: 'separator' }
  15. { label: 'Config…', command: 'application:open-your-config' }
  16. { label: 'Init Script…', command: 'application:open-your-init-script' }
  17. { label: 'Keymap…', command: 'application:open-your-keymap' }
  18. { label: 'Snippets…', command: 'application:open-your-snippets' }
  19. { label: 'Stylesheet…', command: 'application:open-your-stylesheet' }
  20. { type: 'separator' }
  21. { label: 'Install Shell Commands', command: 'window:install-shell-commands' }
  22. { type: 'separator' }
  23. { label: 'Services', role: 'services', submenu: [] }
  24. { type: 'separator' }
  25. { label: 'Hide Pulsar', command: 'application:hide' }
  26. { label: 'Hide Others', command: 'application:hide-other-applications' }
  27. { label: 'Show All', command: 'application:unhide-all-applications' }
  28. { type: 'separator' }
  29. { label: 'Quit Pulsar', command: 'application:quit' }
  30. ]
  31. }
  32. {
  33. label: 'File'
  34. submenu: [
  35. { label: 'New Window', command: 'application:new-window' }
  36. { label: 'New File', command: 'application:new-file' }
  37. { label: 'Open…', command: 'application:open' }
  38. { label: 'Add Project Folder…', command: 'application:add-project-folder' }
  39. {
  40. label: 'Reopen Project',
  41. submenu: [
  42. { label: 'Clear Project History', command: 'application:clear-project-history' }
  43. { type: 'separator' }
  44. ]
  45. }
  46. { label: 'Reopen Last Item', command: 'pane:reopen-closed-item' }
  47. { type: 'separator' }
  48. { label: 'Save', command: 'core:save' }
  49. { label: 'Save As…', command: 'core:save-as' }
  50. { label: 'Save All', command: 'window:save-all' }
  51. { type: 'separator' }
  52. { label: 'Close Tab', command: 'core:close' }
  53. { label: 'Close Pane', command: 'pane:close' }
  54. { label: 'Close Window', command: 'window:close' }
  55. ]
  56. }
  57. {
  58. label: 'Edit'
  59. submenu: [
  60. { label: 'Undo', command: 'core:undo' }
  61. { label: 'Redo', command: 'core:redo' }
  62. { type: 'separator' }
  63. { label: 'Cut', command: 'core:cut' }
  64. { label: 'Copy', command: 'core:copy' }
  65. { label: 'Copy Path', command: 'editor:copy-path' }
  66. { label: 'Paste', command: 'core:paste' }
  67. { label: 'Paste Without Reformatting', command: 'editor:paste-without-reformatting' }
  68. { label: 'Select All', command: 'core:select-all' }
  69. { type: 'separator' }
  70. { label: 'Toggle Comments', command: 'editor:toggle-line-comments' }
  71. {
  72. label: 'Lines',
  73. submenu: [
  74. { label: 'Indent', command: 'editor:indent-selected-rows' }
  75. { label: 'Outdent', command: 'editor:outdent-selected-rows' }
  76. { label: 'Auto Indent', command: 'editor:auto-indent' }
  77. { type: 'separator' }
  78. { label: 'Move Line Up', command: 'editor:move-line-up' }
  79. { label: 'Move Line Down', command: 'editor:move-line-down' }
  80. { label: 'Duplicate Lines', command: 'editor:duplicate-lines' }
  81. { label: 'Delete Line', command: 'editor:delete-line' }
  82. { label: 'Join Lines', command: 'editor:join-lines' }
  83. ]
  84. }
  85. {
  86. label: 'Columns',
  87. submenu: [
  88. { label: 'Move Selection Left', command: 'editor:move-selection-left' }
  89. { label: 'Move Selection Right', command: 'editor:move-selection-right' }
  90. ]
  91. }
  92. {
  93. label: 'Text',
  94. submenu: [
  95. { label: 'Upper Case', command: 'editor:upper-case' }
  96. { label: 'Lower Case', command: 'editor:lower-case' }
  97. { type: 'separator' }
  98. { label: 'Delete to End of Word', command: 'editor:delete-to-end-of-word' }
  99. { label: 'Delete to Previous Word Boundary', command: 'editor:delete-to-previous-word-boundary' }
  100. { label: 'Delete to Next Word Boundary', command: 'editor:delete-to-next-word-boundary' }
  101. { label: 'Delete Line', command: 'editor:delete-line' }
  102. { type: 'separator' }
  103. { label: 'Transpose', command: 'editor:transpose' }
  104. ]
  105. }
  106. {
  107. label: 'Folding',
  108. submenu: [
  109. { label: 'Fold', command: 'editor:fold-current-row' }
  110. { label: 'Unfold', command: 'editor:unfold-current-row' }
  111. { label: 'Fold All', command: 'editor:fold-all' }
  112. { label: 'Unfold All', command: 'editor:unfold-all' }
  113. { type: 'separator' }
  114. { label: 'Fold Level 1', command: 'editor:fold-at-indent-level-1' }
  115. { label: 'Fold Level 2', command: 'editor:fold-at-indent-level-2' }
  116. { label: 'Fold Level 3', command: 'editor:fold-at-indent-level-3' }
  117. { label: 'Fold Level 4', command: 'editor:fold-at-indent-level-4' }
  118. { label: 'Fold Level 5', command: 'editor:fold-at-indent-level-5' }
  119. { label: 'Fold Level 6', command: 'editor:fold-at-indent-level-6' }
  120. { label: 'Fold Level 7', command: 'editor:fold-at-indent-level-7' }
  121. { label: 'Fold Level 8', command: 'editor:fold-at-indent-level-8' }
  122. { label: 'Fold Level 9', command: 'editor:fold-at-indent-level-9' }
  123. ]
  124. }
  125. ]
  126. }
  127. {
  128. label: 'View'
  129. submenu: [
  130. { label: 'Toggle Full Screen', command: 'window:toggle-full-screen' }
  131. {
  132. label: 'Panes'
  133. submenu: [
  134. { label: 'Split Up', command: 'pane:split-up-and-copy-active-item' }
  135. { label: 'Split Down', command: 'pane:split-down-and-copy-active-item' }
  136. { label: 'Split Left', command: 'pane:split-left-and-copy-active-item' }
  137. { label: 'Split Right', command: 'pane:split-right-and-copy-active-item' }
  138. { type: 'separator' }
  139. { label: 'Focus Next Pane', command: 'window:focus-next-pane' }
  140. { label: 'Focus Previous Pane', command: 'window:focus-previous-pane' }
  141. { type: 'separator' }
  142. { label: 'Focus Pane Above', command: 'window:focus-pane-above' }
  143. { label: 'Focus Pane Below', command: 'window:focus-pane-below' }
  144. { label: 'Focus Pane On Left', command: 'window:focus-pane-on-left' }
  145. { label: 'Focus Pane On Right', command: 'window:focus-pane-on-right' }
  146. { type: 'separator' }
  147. { label: 'Close Pane', command: 'pane:close' }
  148. ]
  149. }
  150. {
  151. label: 'Developer'
  152. submenu: [
  153. { label: 'Open In Dev Mode…', command: 'application:open-dev' }
  154. { label: 'Reload Window', command: 'window:reload' }
  155. { label: 'Run Package Specs', command: 'window:run-package-specs' }
  156. { label: 'Toggle Developer Tools', command: 'window:toggle-dev-tools' }
  157. ]
  158. }
  159. { type: 'separator' }
  160. { label: 'Increase Font Size', command: 'window:increase-font-size' }
  161. { label: 'Decrease Font Size', command: 'window:decrease-font-size' }
  162. { label: 'Reset Font Size', command: 'window:reset-font-size' }
  163. { type: 'separator' }
  164. { label: 'Toggle Soft Wrap', command: 'editor:toggle-soft-wrap' }
  165. ]
  166. }
  167. {
  168. label: 'Selection'
  169. submenu: [
  170. { label: 'Add Selection Above', command: 'editor:add-selection-above' }
  171. { label: 'Add Selection Below', command: 'editor:add-selection-below' }
  172. { label: 'Single Selection', command: 'editor:consolidate-selections'}
  173. { label: 'Split into Lines', command: 'editor:split-selections-into-lines'}
  174. { type: 'separator' }
  175. { label: 'Select to Top', command: 'core:select-to-top' }
  176. { label: 'Select to Bottom', command: 'core:select-to-bottom' }
  177. { type: 'separator' }
  178. { label: 'Select Line', command: 'editor:select-line' }
  179. { label: 'Select Word', command: 'editor:select-word' }
  180. { label: 'Select to Beginning of Word', command: 'editor:select-to-beginning-of-word' }
  181. { label: 'Select to Beginning of Line', command: 'editor:select-to-beginning-of-line' }
  182. { label: 'Select to First Character of Line', command: 'editor:select-to-first-character-of-line' }
  183. { label: 'Select to End of Word', command: 'editor:select-to-end-of-word' }
  184. { label: 'Select to End of Line', command: 'editor:select-to-end-of-line' }
  185. ]
  186. }
  187. {
  188. label: 'Find'
  189. submenu: []
  190. }
  191. {
  192. label: 'Packages'
  193. submenu: [
  194. { label: 'Open Package Manager', command: 'settings-view:view-installed-packages' }
  195. { type: 'separator' }
  196. ]
  197. }
  198. {
  199. label: 'Window'
  200. role: 'window'
  201. submenu: [
  202. { label: 'Minimize', command: 'application:minimize' }
  203. { label: 'Zoom', command: 'application:zoom' }
  204. { type: 'separator' }
  205. { label: 'Bring All to Front', command: 'application:bring-all-windows-to-front' }
  206. ]
  207. }
  208. {
  209. label: 'Help'
  210. role: 'help'
  211. submenu: [
  212. { label: 'Terms of Use', command: 'application:open-terms-of-use' }
  213. { label: 'Documentation', command: 'application:open-documentation' }
  214. { label: 'Frequently Asked Questions', command: 'application:open-faq' }
  215. { type: 'separator' }
  216. { label: 'Community Discussions', command: 'application:open-discussions' }
  217. { label: 'Report Issue', command: 'application:report-issue' }
  218. { label: 'Search Issues', command: 'application:search-issues' }
  219. { type: 'separator' }
  220. ]
  221. }
  222. ]
  223. 'context-menu':
  224. 'atom-text-editor, .overlayer': [
  225. {label: 'Undo', command: 'core:undo'}
  226. {label: 'Redo', command: 'core:redo'}
  227. {type: 'separator'}
  228. {label: 'Cut', command: 'core:cut'}
  229. {label: 'Copy', command: 'core:copy'}
  230. {label: 'Paste', command: 'core:paste'}
  231. {label: 'Delete', command: 'core:delete'}
  232. {label: 'Select All', command: 'core:select-all'}
  233. {type: 'separator'}
  234. {label: 'Split Up', command: 'pane:split-up-and-copy-active-item'}
  235. {label: 'Split Down', command: 'pane:split-down-and-copy-active-item'}
  236. {label: 'Split Left', command: 'pane:split-left-and-copy-active-item'}
  237. {label: 'Split Right', command: 'pane:split-right-and-copy-active-item'}
  238. {label: 'Close Pane', command: 'pane:close'}
  239. {type: 'separator'}
  240. ]
  241. 'atom-pane': [
  242. {type: 'separator'}
  243. {label: 'Split Up', command: 'pane:split-up-and-copy-active-item'}
  244. {label: 'Split Down', command: 'pane:split-down-and-copy-active-item'}
  245. {label: 'Split Left', command: 'pane:split-left-and-copy-active-item'}
  246. {label: 'Split Right', command: 'pane:split-right-and-copy-active-item'}
  247. {label: 'Close Pane', command: 'pane:close'}
  248. {type: 'separator'}
  249. ]