forked from magnars/expand-region.el
/
org-mode-expansions.feature
55 lines (52 loc) · 1.03 KB
/
org-mode-expansions.feature
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
Feature: org-mode expansions
In order to quickly and precisely mark org mode sections
As an Emacs user
I want to expand to them
Scenario: Org level 3
Given I turn on org-mode
When I insert:
"""
* lvl 1
** lvl 2
*** lvl 3
"""
And I place the cursor before "*** lvl 3"
And I press "C-@"
And I press "C-@"
Then the region should be "*** lvl 3"
Scenario: Org level 2
Given I turn on org-mode
When I insert:
"""
* lvl 1
** lvl 2
*** lvl 3
"""
And I place the cursor before "*** lvl 3"
And I press "C-@"
And I press "C-@"
And I press "C-@"
Then the region should be:
"""
** lvl 2
*** lvl 3
"""
Scenario: Org level 1
Given I turn on org-mode
When I insert:
"""
* lvl 1
** lvl 2
*** lvl 3
"""
And I place the cursor before "*** lvl 3"
And I press "C-@"
And I press "C-@"
And I press "C-@"
And I press "C-@"
Then the region should be:
"""
* lvl 1
** lvl 2
*** lvl 3
"""