keymap.cson 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Your keymap
  2. #
  3. # Atom keymaps work similarly to style sheets. Just as style sheets use
  4. # selectors to apply styles to elements, Atom keymaps use selectors to associate
  5. # keystrokes with events in specific contexts.
  6. #
  7. # You can create a new keybinding in this file by typing "key" and then hitting
  8. # tab.
  9. #
  10. # Here's an example taken from Atom's built-in keymap:
  11. #
  12. # 'atom-text-editor':
  13. # 'enter': 'editor:newline'
  14. #
  15. # 'atom-workspace':
  16. # 'ctrl-shift-p': 'core:move-up'
  17. # 'ctrl-p': 'core:move-down'
  18. #
  19. # You can find more information about keymaps in these guides:
  20. # * https://atom.io/docs/latest/customizing-atom#customizing-key-bindings
  21. # * https://atom.io/docs/latest/advanced/keymaps
  22. #
  23. # This file uses CoffeeScript Object Notation (CSON).
  24. # If you are unfamiliar with CSON, you can read more about it here:
  25. # https://github.com/bevry/cson#what-is-cson
  26. 'atom-workspace':
  27. 'cmd-u': 'tree-view:toggle'
  28. 'atom-workspace atom-text-editor:not([mini])':
  29. 'cmd-shift-L': 'tree-view:reveal-active-file'
  30. 'atom-text-editor':
  31. 'cmd-shift-B': 'beautify:beautify-editor'
  32. 'alt-up': 'editor:move-line-up'
  33. 'alt-down': 'editor:move-line-down'
  34. # 'ctrl-alt-left': 'find-and-replace:select-previous' --- TODO: do this
  35. 'ctrl-alt-left': ''
  36. 'ctrl-alt-right': 'find-and-replace:select-next'
  37. 'cmd-l': 'go-to-line:toggle'
  38. 'cmd-d': 'editor:delete-line'
  39. 'cmd-shift-D': 'editor:duplicate-lines'
  40. 'cmd-alt-l': 'editor:fold-current-row'
  41. 'cmd-shift-alt-L': 'editor:unfold-current-row'
  42. # TODO: more things from ACE that I might care about
  43. # cmd-option-l toggle-fold
  44. # cmd-shift-l select-current-line and move-down
  45. # TODO: make :w, :wq, :x, etc. work *SEAMLESSLY*
  46. #'atom-text-editor.vim-mode:not(.insert-mode)':
  47. # ':': 'command-palette:toggle'
  48. 'atom-text-editor.vim-mode.visual-mode':
  49. '=': 'beautify:beautify-editor'
  50. 'atom-text-editor:not(mini) .autocomplete-plus.autocomplete-suggestion-list':
  51. # 'tab': 'unset!'
  52. 'enter': 'autocomplete-plus:confirm'
  53. # 'up': 'unset!'
  54. # 'down': 'unset!'
  55. 'ctrl-p': 'autocomplete-plus:select-previous'
  56. 'ctrl-n': 'autocomplete-plus:select-next'