mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 13:03:03 +00:00
Add some readability enhancing step definitions
This commit is contained in:
parent
cb848b2a39
commit
94af07453d
@ -115,7 +115,7 @@ Feature: Multiple cursors core
|
|||||||
And I go to the front of the word "text"
|
And I go to the front of the word "text"
|
||||||
And I press "C-SPC"
|
And I press "C-SPC"
|
||||||
And I press "M-f"
|
And I press "M-f"
|
||||||
And I press "C->"
|
And I mark next like this
|
||||||
And I type "!"
|
And I type "!"
|
||||||
Then I should see "This ! contains the word ! twice"
|
Then I should see "This ! contains the word ! twice"
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ Feature: Multiple cursors core
|
|||||||
And I insert "This text contains the word text twice"
|
And I insert "This text contains the word text twice"
|
||||||
And I go to the front of the word "text"
|
And I go to the front of the word "text"
|
||||||
And I press "C-M-SPC"
|
And I press "C-M-SPC"
|
||||||
And I press "C->"
|
And I mark next like this
|
||||||
And I press "C-g"
|
And I press "C-g"
|
||||||
And I type "("
|
And I type "("
|
||||||
Then I should see "This (text contains the word (text twice"
|
Then I should see "This (text contains the word (text twice"
|
||||||
|
@ -1,3 +1,33 @@
|
|||||||
|
(When "^I mark next like this$"
|
||||||
|
(lambda () (call-interactively 'mc/mark-next-like-this)))
|
||||||
|
|
||||||
|
(When "^I mark previous like this$"
|
||||||
|
(lambda () (call-interactively 'mc/mark-previous-like-this)))
|
||||||
|
|
||||||
|
(When "^I mark all like this$"
|
||||||
|
(lambda () (call-interactively 'mc/mark-all-like-this)))
|
||||||
|
|
||||||
|
(When "^I mark all like this dwim$"
|
||||||
|
(lambda () (call-interactively 'mc/mark-all-like-this-dwim)))
|
||||||
|
|
||||||
|
(When "^I mark all in region$"
|
||||||
|
(lambda () (call-interactively 'mc/mark-all-in-region)))
|
||||||
|
|
||||||
|
(When "^I insert numbers$"
|
||||||
|
(lambda () (call-interactively 'mc/insert-numbers)))
|
||||||
|
|
||||||
|
(When "^I reverse regions$"
|
||||||
|
(lambda () (call-interactively 'mc/reverse-regions)))
|
||||||
|
|
||||||
|
(When "^I sort regions$"
|
||||||
|
(lambda () (call-interactively 'mc/sort-regions)))
|
||||||
|
|
||||||
|
(When "^I edit lines$"
|
||||||
|
(lambda () (call-interactively 'mc/edit-lines)))
|
||||||
|
|
||||||
|
(When "^I set rectangular region anchor$"
|
||||||
|
(lambda () (call-interactively 'set-rectangular-region-anchor)))
|
||||||
|
|
||||||
(And "^delete-selection-mode is active$"
|
(And "^delete-selection-mode is active$"
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(delete-selection-mode 1)))
|
(delete-selection-mode 1)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user