keymap.cson 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. Unlike style sheets however,
  6. # each selector can only be declared once.
  7. #
  8. # You can create a new keybinding in this file by typing "key" and then hitting
  9. # tab.
  10. #
  11. # Here's an example taken from Atom's built-in keymap:
  12. #
  13. # 'atom-text-editor':
  14. # 'enter': 'editor:newline'
  15. #
  16. # 'atom-workspace':
  17. # 'ctrl-shift-p': 'core:move-up'
  18. # 'ctrl-p': 'core:move-down'
  19. #
  20. # You can find more information about keymaps in these guides:
  21. # * http://flight-manual.atom.io/using-atom/sections/basic-customization/#_customizing_keybindings
  22. # * http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/
  23. #
  24. # If you're having trouble with your keybindings not working, try the
  25. # Keybinding Resolver: `Cmd+.` on macOS and `Ctrl+.` on other platforms. See the
  26. # Debugging Guide for more information:
  27. # * http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-the-keybindings
  28. #
  29. # This file uses CoffeeScript Object Notation (CSON).
  30. # If you are unfamiliar with CSON, you can read more about it in the
  31. # Atom Flight Manual:
  32. # http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
  33. 'atom-workspace':
  34. 'cmd-u': 'tree-view:toggle'
  35. 'atom-workspace atom-text-editor:not([mini])':
  36. 'cmd-shift-L': 'tree-view:reveal-active-file'
  37. 'atom-text-editor':
  38. 'cmd-shift-B': 'beautify:beautify-editor'
  39. 'alt-up': 'editor:move-line-up'
  40. 'alt-down': 'editor:move-line-down'
  41. 'ctrl-alt-left': '!unset' # --- TODO: add 'find-and-replace:select-previous'
  42. 'ctrl-alt-right': 'find-and-replace:select-next'
  43. 'cmd-l': 'go-to-line:toggle'
  44. #'cmd-d': 'editor:delete-line' --- TODO: broken
  45. 'cmd-shift-D': 'editor:duplicate-lines'
  46. 'cmd-alt-l': 'editor:fold-current-row'
  47. 'cmd-shift-alt-L': 'editor:unfold-current-row'
  48. # TODO: more things from ACE that I might care about
  49. # cmd-option-l toggle-fold
  50. # cmd-shift-l select-current-line and move-down
  51. # TODO: make :w, :wq, :x, etc. work *SEAMLESSLY*
  52. #'atom-text-editor.vim-mode:not(.insert-mode)':
  53. # ':': 'command-palette:toggle'
  54. 'atom-text-editor.vim-mode.visual-mode':
  55. '=': 'beautify:beautify-editor'
  56. 'atom-text-editor:not(mini) .autocomplete-plus.autocomplete-suggestion-list':
  57. # 'tab': 'unset!'
  58. 'enter': 'autocomplete-plus:confirm'
  59. # 'up': 'unset!'
  60. # 'down': 'unset!'
  61. 'ctrl-p': 'autocomplete-plus:select-previous'
  62. 'ctrl-n': 'autocomplete-plus:select-next'