darwin.cson 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. 'body':
  2. # Apple specific
  3. 'cmd-q': 'application:quit'
  4. 'cmd-h': 'application:hide'
  5. 'cmd-alt-h': 'application:hide-other-applications'
  6. 'cmd-m': 'application:minimize'
  7. 'alt-cmd-ctrl-m': 'application:zoom'
  8. 'ctrl-p': 'core:move-up'
  9. 'ctrl-n': 'core:move-down'
  10. 'ctrl-b': 'core:move-left'
  11. 'ctrl-f': 'core:move-right'
  12. 'ctrl-shift-p': 'core:select-up'
  13. 'ctrl-shift-n': 'core:select-down'
  14. 'ctrl-shift-f': 'core:select-right'
  15. 'ctrl-shift-b': 'core:select-left'
  16. 'ctrl-h': 'core:backspace'
  17. 'ctrl-d': 'core:delete'
  18. # Pulsar Specific
  19. 'enter': 'core:confirm'
  20. 'escape': 'core:cancel'
  21. 'up': 'core:move-up'
  22. 'down': 'core:move-down'
  23. 'ctrl-up': 'core:move-up'
  24. 'ctrl-down': 'core:move-down'
  25. 'left': 'core:move-left'
  26. 'right': 'core:move-right'
  27. 'ctrl-alt-cmd-l': 'window:reload'
  28. 'alt-cmd-i': 'window:toggle-dev-tools'
  29. 'cmd-alt-ctrl-p': 'window:run-package-specs'
  30. 'ctrl-shift-left': 'pane:move-item-left'
  31. 'ctrl-shift-right': 'pane:move-item-right'
  32. # Sublime Parity
  33. 'cmd-,': 'application:show-settings'
  34. 'cmd-shift-n': 'application:new-window'
  35. 'cmd-shift-w': 'window:close'
  36. 'cmd-o': 'application:open'
  37. 'cmd-shift-o': 'application:add-project-folder'
  38. 'cmd-shift-t': 'pane:reopen-closed-item'
  39. 'cmd-n': 'application:new-file'
  40. 'cmd-s': 'core:save'
  41. 'cmd-shift-s': 'core:save-as'
  42. 'cmd-alt-s': 'window:save-all'
  43. 'cmd-w': 'core:close'
  44. 'cmd-ctrl-f': 'window:toggle-full-screen'
  45. 'cmd-z': 'core:undo'
  46. 'cmd-shift-z': 'core:redo'
  47. 'cmd-y': 'core:redo'
  48. 'cmd-x': 'core:cut'
  49. 'cmd-c': 'core:copy'
  50. 'cmd-v': 'core:paste'
  51. 'shift-up': 'core:select-up'
  52. 'shift-down': 'core:select-down'
  53. 'shift-left': 'core:select-left'
  54. 'shift-right': 'core:select-right'
  55. 'shift-pageup': 'core:select-page-up'
  56. 'shift-pagedown': 'core:select-page-down'
  57. 'delete': 'core:delete'
  58. 'shift-delete': 'core:delete'
  59. 'pageup': 'core:page-up'
  60. 'pagedown': 'core:page-down'
  61. 'backspace': 'core:backspace'
  62. 'shift-backspace': 'core:backspace'
  63. 'cmd-up': 'core:move-to-top'
  64. 'cmd-down': 'core:move-to-bottom'
  65. 'cmd-shift-up': 'core:select-to-top'
  66. 'cmd-shift-down': 'core:select-to-bottom'
  67. 'cmd-{': 'pane:show-previous-item'
  68. 'cmd-}': 'pane:show-next-item'
  69. 'cmd-alt-left': 'pane:show-previous-item'
  70. 'cmd-alt-right': 'pane:show-next-item'
  71. 'ctrl-pageup': 'pane:show-previous-item'
  72. 'ctrl-pagedown': 'pane:show-next-item'
  73. 'ctrl-tab': 'pane:show-next-recently-used-item'
  74. 'ctrl-tab ^ctrl': 'pane:move-active-item-to-top-of-stack'
  75. 'ctrl-shift-tab': 'pane:show-previous-recently-used-item'
  76. 'ctrl-shift-tab ^ctrl': 'pane:move-active-item-to-top-of-stack'
  77. 'cmd-=': 'window:increase-font-size'
  78. 'cmd-+': 'window:increase-font-size'
  79. 'cmd-_': 'window:decrease-font-size'
  80. 'cmd--': 'window:decrease-font-size'
  81. 'cmd-0': 'window:reset-font-size'
  82. 'cmd-k up': 'pane:split-up-and-copy-active-item' # Pulsar Specific
  83. 'cmd-k down': 'pane:split-down-and-copy-active-item' # Pulsar Specific
  84. 'cmd-k left': 'pane:split-left-and-copy-active-item' # Pulsar Specific
  85. 'cmd-k right': 'pane:split-right-and-copy-active-item' # Pulsar Specific
  86. 'cmd-k cmd-w': 'pane:close' # Pulsar Specific
  87. 'cmd-k alt-cmd-w': 'pane:close-other-items' # Pulsar Specific
  88. 'cmd-k cmd-p': 'window:focus-previous-pane'
  89. 'cmd-k cmd-n': 'window:focus-next-pane'
  90. 'cmd-k cmd-up': 'window:focus-pane-above'
  91. 'cmd-k cmd-down': 'window:focus-pane-below'
  92. 'cmd-k cmd-left': 'window:focus-pane-on-left'
  93. 'cmd-k cmd-right': 'window:focus-pane-on-right'
  94. 'cmd-1': 'pane:show-item-1'
  95. 'cmd-2': 'pane:show-item-2'
  96. 'cmd-3': 'pane:show-item-3'
  97. 'cmd-4': 'pane:show-item-4'
  98. 'cmd-5': 'pane:show-item-5'
  99. 'cmd-6': 'pane:show-item-6'
  100. 'cmd-7': 'pane:show-item-7'
  101. 'cmd-8': 'pane:show-item-8'
  102. 'cmd-9': 'pane:show-item-9'
  103. 'atom-text-editor':
  104. # Platform Bindings
  105. 'alt-left': 'editor:move-to-beginning-of-word'
  106. 'alt-right': 'editor:move-to-end-of-word'
  107. 'alt-shift-left': 'editor:select-to-beginning-of-word'
  108. 'alt-shift-right': 'editor:select-to-end-of-word'
  109. # Apple Specific
  110. 'cmd-backspace': 'editor:delete-to-beginning-of-line'
  111. 'cmd-shift-backspace': 'editor:delete-to-beginning-of-line'
  112. 'cmd-delete': 'editor:delete-to-end-of-line'
  113. 'ctrl-shift-a': 'editor:select-to-first-character-of-line'
  114. 'ctrl-shift-e': 'editor:select-to-end-of-line'
  115. 'cmd-left': 'editor:move-to-first-character-of-line'
  116. 'cmd-right': 'editor:move-to-end-of-screen-line'
  117. 'cmd-shift-left': 'editor:select-to-first-character-of-line'
  118. 'cmd-shift-right': 'editor:select-to-end-of-line'
  119. 'alt-backspace': 'editor:delete-to-beginning-of-word'
  120. 'alt-delete': 'editor:delete-to-end-of-word'
  121. 'ctrl-a': 'editor:move-to-first-character-of-line'
  122. 'ctrl-e': 'editor:move-to-end-of-line'
  123. 'ctrl-k': 'editor:cut-to-end-of-line'
  124. # Pulsar Specific
  125. 'ctrl-shift-w': 'editor:select-word'
  126. 'cmd-ctrl-left': 'editor:move-selection-left'
  127. 'cmd-ctrl-right': 'editor:move-selection-right'
  128. 'cmd-shift-V': 'editor:paste-without-reformatting'
  129. # Emacs
  130. 'alt-f': 'editor:move-to-end-of-word'
  131. 'alt-ctrl-f': 'editor:move-to-next-subword-boundary'
  132. 'alt-shift-f': 'editor:select-to-end-of-word'
  133. 'alt-ctrl-shift-f': 'editor:select-to-next-subword-boundary'
  134. 'alt-b': 'editor:move-to-beginning-of-word'
  135. 'alt-ctrl-b': 'editor:move-to-previous-subword-boundary'
  136. 'alt-shift-b': 'editor:select-to-beginning-of-word'
  137. 'alt-ctrl-shift-b': 'editor:select-to-previous-subword-boundary'
  138. 'alt-h': 'editor:delete-to-beginning-of-word'
  139. 'alt-ctrl-h': 'editor:delete-to-beginning-of-subword'
  140. 'alt-d': 'editor:delete-to-end-of-word'
  141. 'alt-ctrl-d': 'editor:delete-to-end-of-subword'
  142. # Sublime Parity
  143. 'cmd-a': 'core:select-all'
  144. 'cmd-alt-p': 'editor:log-cursor-scope'
  145. 'cmd-k cmd-u': 'editor:upper-case'
  146. 'cmd-k cmd-l': 'editor:lower-case'
  147. 'cmd-l': 'editor:select-line'
  148. 'ctrl-t': 'editor:transpose'
  149. 'ctrl-alt-left': 'editor:move-to-previous-subword-boundary'
  150. 'ctrl-alt-right': 'editor:move-to-next-subword-boundary'
  151. 'ctrl-alt-shift-left': 'editor:select-to-previous-subword-boundary'
  152. 'ctrl-alt-shift-right': 'editor:select-to-next-subword-boundary'
  153. 'ctrl-alt-backspace': 'editor:delete-to-beginning-of-subword'
  154. 'ctrl-alt-delete': 'editor:delete-to-end-of-subword'
  155. 'atom-workspace atom-text-editor:not([mini])':
  156. # Pulsar specific
  157. 'alt-cmd-z': 'editor:checkout-head-revision'
  158. 'cmd-<': 'editor:scroll-to-cursor'
  159. 'alt-cmd-ctrl-f': 'editor:fold-selection'
  160. # Sublime Parity
  161. 'cmd-enter': 'editor:newline-below'
  162. 'cmd-shift-enter': 'editor:newline-above'
  163. 'alt-enter': 'editor:newline'
  164. 'shift-enter': 'editor:newline'
  165. 'cmd-]': 'editor:indent-selected-rows'
  166. 'cmd-[': 'editor:outdent-selected-rows'
  167. 'ctrl-cmd-up': 'editor:move-line-up'
  168. 'ctrl-cmd-down': 'editor:move-line-down'
  169. 'cmd-/': 'editor:toggle-line-comments'
  170. 'cmd-j': 'editor:join-lines'
  171. 'cmd-shift-d': 'editor:duplicate-lines'
  172. 'cmd-shift-l': 'editor:split-selections-into-lines'
  173. 'ctrl-shift-up': 'editor:add-selection-above'
  174. 'ctrl-shift-down': 'editor:add-selection-below'
  175. 'cmd-alt-[': 'editor:fold-current-row'
  176. 'cmd-alt-]': 'editor:unfold-current-row'
  177. 'cmd-alt-{': 'editor:fold-all' # Pulsar Specific
  178. 'cmd-alt-}': 'editor:unfold-all' # Pulsar Specific
  179. 'cmd-k cmd-0': 'editor:unfold-all'
  180. 'cmd-k cmd-1': 'editor:fold-at-indent-level-1'
  181. 'cmd-k cmd-2': 'editor:fold-at-indent-level-2'
  182. 'cmd-k cmd-3': 'editor:fold-at-indent-level-3'
  183. 'cmd-k cmd-4': 'editor:fold-at-indent-level-4'
  184. 'cmd-k cmd-5': 'editor:fold-at-indent-level-5'
  185. 'cmd-k cmd-6': 'editor:fold-at-indent-level-6'
  186. 'cmd-k cmd-7': 'editor:fold-at-indent-level-7'
  187. 'cmd-k cmd-8': 'editor:fold-at-indent-level-8'
  188. 'cmd-k cmd-9': 'editor:fold-at-indent-level-9'
  189. 'atom-workspace atom-pane':
  190. 'cmd-alt-=': 'pane:increase-size'
  191. 'cmd-alt--': 'pane:decrease-size'
  192. # Allow standard input fields to work correctly
  193. 'body .native-key-bindings':
  194. 'cmd-z': 'native!'
  195. 'cmd-shift-z': 'native!'
  196. 'cmd-x': 'native!'
  197. 'cmd-c': 'native!'
  198. 'cmd-v': 'native!'