-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeymap.cson
82 lines (77 loc) · 3.25 KB
/
keymap.cson
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts. Unlike style sheets however,
# each selector can only be declared once.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap:
#
# 'atom-text-editor':
# 'enter': 'editor:newline'
#
# 'atom-workspace':
# 'ctrl-shift-p': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
# You can find more information about keymaps in these guides:
# * http://flight-manual.atom.io/using-atom/sections/basic-customization/#_customizing_keybindings
# * http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/
#
# If you're having trouble with your keybindings not working, try the
# Keybinding Resolver: `Cmd+.` on macOS and `Ctrl+.` on other platforms. See the
# Debugging Guide for more information:
# * http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-the-keybindings
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
'.editor':
'ctrl-cmd-w': 'editor:toggle-soft-wrap'
'atom-text-editor':
'ctrl-enter': 'custom:add-code-newline'
'ctrl-shift-c': 'custom:copy-code-newline'
'ctrl-alt-left': 'custom:print-leftarrow'
'ctrl-alt-right': 'custom:print-rightarrow'
'ctrl-alt-up': 'custom:print-uparrow'
'ctrl-alt-down': 'custom:print-downarrow'
'shift-ctrl-alt-left': 'custom:print-dblleftarrow'
'shift-ctrl-alt-right': 'custom:print-dblrightarrow'
'atom-workspace atom-text-editor:not([mini])':
'alt-shift-down': 'editor:add-selection-below'
'alt-shift-up': 'editor:add-selection-above'
'atom-workspace':
'ctrl-+': 'cursor-history:next'
'ctrl-_': 'cursor-history:prev'
'ctrl-=': 'cursor-history:next-within-editor'
'ctrl--': 'cursor-history:prev-within-editor'
# Default Keymaps for Markdown Writer
# https://atom.io/packages/markdown-writer
#
# Wiki: https://github.com/zhuochun/md-writer/wiki/Settings-for-Keymaps
#
".platform-darwin atom-text-editor:not([mini])":
"shift-cmd-K": "markdown-writer:insert-link"
# "shift-cmd-I": "markdown-writer:insert-image"
"cmd-i": "markdown-writer:toggle-italic-text"
"cmd-b": "markdown-writer:toggle-bold-text"
"cmd-'": "markdown-writer:toggle-code-text"
"cmd-k": "markdown-writer:toggle-keystroke-text"
"cmd-h": "markdown-writer:toggle-strikethrough-text"
'cmd->': "markdown-writer:toggle-blockquote"
'cmd-"': "markdown-writer:toggle-codeblock-text"
"ctrl-alt-1": "markdown-writer:toggle-h1"
"ctrl-alt-2": "markdown-writer:toggle-h2"
"ctrl-alt-3": "markdown-writer:toggle-h3"
"ctrl-alt-4": "markdown-writer:toggle-h4"
"ctrl-alt-5": "markdown-writer:toggle-h5"
"shift-cmd-E": "markdown-writer:toggle-ol"
"shift-cmd-B": "markdown-writer:toggle-ul"
"cmd-ctrl-j": "markdown-writer:jump-to-previous-heading"
"cmd-ctrl-k": "markdown-writer:jump-to-next-heading"
"cmd-j cmd-d": "markdown-writer:jump-to-reference-definition"
"cmd-j cmd-t": "markdown-writer:jump-to-next-table-cell"