mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2026-02-04 14:22:24 +00:00
Added mc/interactive-repeating-commands (#303)
* Added mc/interactive-repeating-commands * simplify mc/interactive-repeating-commands * simplify mc/interactive-repeating-commands * removed mc/interactive-repeating-commands * added mc/repeat-command * rebound mc/repeat-command * blacklisted repeat-complex-command * added mc/always-repeat-command * added mc/repeat-command tests
This commit is contained in:
37
features/repeat-command.feature
Normal file
37
features/repeat-command.feature
Normal file
@@ -0,0 +1,37 @@
|
||||
Feature: Repeat last interactive command for fake cursors (mc/repeat-command)
|
||||
|
||||
Scenario: Clone insert-char from M-x
|
||||
Given I have cursors at "text" in "This text contains the word text thrice (text)"
|
||||
When I start an action chain
|
||||
When I press "M-x"
|
||||
And I type "insert-char"
|
||||
And I press "RET"
|
||||
And I type "21"
|
||||
And I press "RET"
|
||||
And I press "C-:"
|
||||
And I press "y"
|
||||
And I execute the action chain
|
||||
Then I should see "This !text contains the word !text thrice (!text)"
|
||||
|
||||
Scenario: Clone insert-char from M-:
|
||||
Given I have cursors at "text" in "This text contains the word text thrice (text)"
|
||||
When I start an action chain
|
||||
When I press "M-:"
|
||||
And I type "(insert-char (+ 40 2))"
|
||||
And I press "RET"
|
||||
And I press "C-:"
|
||||
And I press "y"
|
||||
And I execute the action chain
|
||||
Then I should see "This *text contains the word *text thrice (*text)"
|
||||
|
||||
Scenario: Disable prompt
|
||||
Given I have cursors at "text" in "This text/0000 contains the word text/1111 thrice (text/2222)"
|
||||
When I set mc/always-repeat-command to t
|
||||
When I start an action chain
|
||||
And I press "M-x"
|
||||
And I type "zap-to-char"
|
||||
And I press "RET"
|
||||
And I press "/"
|
||||
And I press "C-:"
|
||||
And I execute the action chain
|
||||
Then I should see "This 0000 contains the word 1111 thrice (2222)"
|
||||
Reference in New Issue
Block a user