123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- Feature: Switching from a multiline region to multiple cursors
-
- Scenario: Single line region
- When I insert "hello there"
- And I select "there"
- And I press "C-S-c C-S-c"
- Then I should have one cursor
-
- Scenario: Edit lines
- When I insert:
- """
- hello
- there
- """
- And I go to the front of the word "hello"
- And I set the mark
- And I go to the front of the word "there"
- And I press "C-S-c C-S-c"
- Then I should have 2 cursors
-
- Scenario: Edit lines from bottom up
- When I insert:
- """
- hello
- there
- """
- And I go to the front of the word "there"
- And I set the mark
- And I go to the front of the word "hello"
- And I press "C-S-c C-S-c"
- Then I should have one cursor
-
- Scenario: Edit only real lines, even in visual-line-mode
- Given I turn on visual-line-mode
- And I insert:
- """
- some very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very
- long text
- """
- And I go to the front of the word "some"
- And I set the mark
- And I go to the front of the word "long"
- And I press "C-S-c C-S-c"
- Then I should have 2 cursors
-
- Scenario: Edit without using transient mark mode
- Given I turn off transient-mark-mode
- And I insert:
- """
- hello
- there
- """
- And I go to the front of the word "hello"
- And I set the mark
- And I go to the front of the word "there"
- And I press "C-S-c C-S-c"
- Then I should have 2 cursors
-
- Scenario: Edit default short lines
- When I insert:
- """
- hello
-
- there
- """
- And I go to the end of the word "hello"
- And I set the mark
- And I go to the end of the word "there"
- And I press "C-S-c C-S-c"
- And I press "you"
- Then I should see:
- """
- helloyou
- you
- thereyou
- """
-
- Scenario: Pad short lines
- When I insert:
- """
- hello
-
- there
- """
- And I go to the end of the word "hello"
- And I set the mark
- And I go to the end of the word "there"
- And I press "M-1 C-S-c C-S-c"
- Then I should have 3 cursors
-
- Scenario: Edit padding short lines
- When I insert:
- """
- hello
-
- there
- """
- And I go to the end of the word "hello"
- And I set the mark
- And I go to the end of the word "there"
- And I press "M-1 C-S-c C-S-c"
- And I press "you"
- Then I should see:
- """
- helloyou
- you
- thereyou
- """
-
- Scenario: Skip short lines
- When I insert:
- """
- hello
-
- there
- """
- And I go to the end of the word "hello"
- And I set the mark
- And I go to the end of the word "there"
- And I press "M-- M-1 C-S-c C-S-c"
- Then I should have 2 cursors
-
- Scenario: Edit skipping short lines
- When I insert:
- """
- hello
-
- there
- """
- And I go to the end of the word "hello"
- And I set the mark
- And I go to the end of the word "there"
- And I press "M-- M-1 C-S-c C-S-c"
- And I press "you"
- Then I should see:
- """
- helloyou
-
- thereyou
- """
|