-
Notifications
You must be signed in to change notification settings - Fork 4
/
4-other-fancy-selections.html
77 lines (49 loc) · 2.22 KB
/
4-other-fancy-selections.html
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
# vertical or column selection
# hold option while dragging or using arrow keys to select a vertical column of text
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
# expand selection to line - command-l. Selects the full line you're on.
This is a line.
SELECT ME THIS LINE DO IT NOW
Default behavior is to remove the whole line on cut or deletion
YOU CAN ALSO SELECT MULTIPLE
LINES AND THEN USE THE SHORTCUT
========================================================================
# Command-shift-l selects the lines you're on, and adds a cursor on each one
# Sometimes the cursors won't be exactly where you expect
After you use this shortcut,
you'll see a cursor on
all three of these lines
========================================================================
# expand to parentheses, brackets, etc.
Contrl-shift-m from within square bracket, curly braces, and parentheses selects everything within it.
(hey you can select me with one shortcut!)
[and me too!]
{and also me!}
(You can even do (nested parens, etc) by hitting it repeatedly)
# in HTML docs with tags, use command-shift-a for a similar behavior, except with tags.
<div>
<ul>
<li>Here's</li>
<li>some</li>
<li>text!</li>
</ul>
</div>
========================================================================
# in any program, use command-shift-j to select any items in the current block with the same indentation
for blah blah blah
What language
is this
Anyway?
Does it matter?
It doesn't
seem to
========================================================================
# expand to scope - Sublime has a notion of the scope of where your cursor is, and using command-shift-spacebar will expand your selection to the current scope. Often duplicates some of the functionality above, but it's worth exploring since it often "does the thing you want to do."
(You can use it in parens)
[You can use it in parens]
{You can use it in parens}