mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2026-02-04 14:22:24 +00:00
Add mc/insert-letters function and test cases
* README.md: Add to readme, under special section. * features/insert-letters.feature: Add scenarios. * features/step-definitions/multiple-cursors-steps.el: Add call. * features/support/env.el: Add keybinding for insert-letters to H-3. * mc-separate-operations.el: Add function and helper functions. * multiple-cursors-core.el: Add insert-letters to functions that run once. * multiple-cursors.el: Add to readme.
This commit is contained in:
19
features/insert-letters.feature
Normal file
19
features/insert-letters.feature
Normal file
@@ -0,0 +1,19 @@
|
||||
Feature: Insert increasing letters
|
||||
|
||||
Scenario: Three cursors, a-b-c
|
||||
Given I have cursors at "text" in "This text contains the word text thrice (text)"
|
||||
When I press "H-3"
|
||||
And I press "SPC"
|
||||
Then I should see "This a text contains the word b text thrice (c text)"
|
||||
|
||||
Scenario: Three cursors, j-k-l
|
||||
Given I have cursors at "text" in "This text contains the word text thrice (text)"
|
||||
When I press "C-9 H-3"
|
||||
And I press "SPC"
|
||||
Then I should see "This j text contains the word k text thrice (l text)"
|
||||
|
||||
Scenario: Three cursors, z-aa-ab
|
||||
Given I have cursors at "text" in "This text contains the word text thrice (text)"
|
||||
When I press "C-u 2 5 H-3"
|
||||
And I press "SPC"
|
||||
Then I should see "This z text contains the word aa text thrice (ab text)"
|
||||
Reference in New Issue
Block a user