mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2026-02-04 14:22:24 +00:00
Merge pull request #227 from jtamagnan/insert_letters
Add mc/insert-letters function and test cases
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)"
|
||||
@@ -22,6 +22,9 @@
|
||||
(When "^I insert numbers$"
|
||||
(lambda () (call-interactively 'mc/insert-numbers)))
|
||||
|
||||
(When "^I insert letters$"
|
||||
(lambda () (call-interactively 'mc/insert-letters)))
|
||||
|
||||
(When "^I reverse regions$"
|
||||
(lambda () (call-interactively 'mc/reverse-regions)))
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
(global-set-key (kbd "C-$") 'mc/mark-all-dwim)
|
||||
(global-set-key (kbd "M-#") 'mc/mark-all-in-region)
|
||||
(global-set-key (kbd "H-0") 'mc/insert-numbers)
|
||||
(global-set-key (kbd "H-3") 'mc/insert-letters)
|
||||
(global-set-key (kbd "H-1") 'mc/reverse-regions)
|
||||
(global-set-key (kbd "H-2") 'mc/sort-regions)
|
||||
(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
|
||||
|
||||
Reference in New Issue
Block a user