rectangular-region.feature (1836B)
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 | Feature: Rectangular region Scenario: Works like regular region when on one line When I insert "some text" And I press "H-SPC" And I press "M-b" Then the region should be "text" And rectangular-region-mode should be on Scenario: Works like regular region when on one line, insert Given I turn on delete-selection-mode When I insert "some text" And I press "H-SPC" And I press "M-b" And I type "replacement" Then I should see "some replacement" And rectangular-region-mode should be off Scenario: Works like regular region when on one line, copy 1 Given I turn on delete-selection-mode When I insert "some text" And I press "H-SPC" And I press "M-b" And I press "M-w" Then rectangular-region-mode should be off Scenario: Works like regular region when on one line, copy 2 Given I turn on delete-selection-mode When I insert "some text" And I press "H-SPC" And I press "M-b" And I press "M-w" And I press "C-y" Then I should see "some texttext" Scenario: Changing multiple lines Given I turn on delete-selection-mode When I insert: """ This is some text This is more text """ And I go to point "6" And I press "H-SPC" And I press "M-f" And I press "C-n" And I type "was" Then I should see: """ This was some text This was more text """ And I should have 2 cursors Scenario: Changing multiple lines with gaps Given I turn on delete-selection-mode When I insert: """ This is some text This is more text """ And I go to point "6" And I press "H-SPC" And I go to the end of the word "more" And I type "was" Then I should see: """ This was text This was text """ And I should have 2 cursors |