linux.cson 10 KB

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