win32.cson 10 KB

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