mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 21:03:05 +00:00
Add more scenarios for mark-all-*-like-this
This commit is contained in:
parent
373dcbe002
commit
25dd14d350
@ -1,6 +1,40 @@
|
|||||||
Feature: Mark things
|
Feature: Mark things
|
||||||
|
|
||||||
Scenario: Mark symbols in defun with select
|
Scenario: Mark all symbols like this with select
|
||||||
|
Given I turn on emacs-lisp-mode
|
||||||
|
And I turn on delete-selection-mode
|
||||||
|
And I insert:
|
||||||
|
"""
|
||||||
|
(defun abc (ghi) (message ghi))
|
||||||
|
(defun def (ghi) (message some-other-ghi))
|
||||||
|
"""
|
||||||
|
When I select "ghi"
|
||||||
|
And I mark all symbols like this
|
||||||
|
And I type "hmm"
|
||||||
|
Then I should see:
|
||||||
|
"""
|
||||||
|
(defun abc (hmm) (message hmm))
|
||||||
|
(defun def (hmm) (message some-other-ghi))
|
||||||
|
"""
|
||||||
|
|
||||||
|
Scenario: Mark all words like this with select
|
||||||
|
Given I turn on emacs-lisp-mode
|
||||||
|
And I turn on delete-selection-mode
|
||||||
|
And I insert:
|
||||||
|
"""
|
||||||
|
(defun abc (ghi) (message ghi))
|
||||||
|
(defun def (ghi) (message some-other-ghi))
|
||||||
|
"""
|
||||||
|
When I select "ghi"
|
||||||
|
And I mark all words like this
|
||||||
|
And I type "hmm"
|
||||||
|
Then I should see:
|
||||||
|
"""
|
||||||
|
(defun abc (hmm) (message hmm))
|
||||||
|
(defun def (hmm) (message some-other-hmm))
|
||||||
|
"""
|
||||||
|
|
||||||
|
Scenario: Mark all symbols like this in defun with select
|
||||||
Given I turn on emacs-lisp-mode
|
Given I turn on emacs-lisp-mode
|
||||||
And I turn on delete-selection-mode
|
And I turn on delete-selection-mode
|
||||||
And I insert:
|
And I insert:
|
||||||
@ -16,3 +50,20 @@ Feature: Mark things
|
|||||||
(defun abc (hmm) (message hmm))
|
(defun abc (hmm) (message hmm))
|
||||||
(defun def (ghi) (message some-other-ghi))
|
(defun def (ghi) (message some-other-ghi))
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Scenario: Mark all words like this in defun with select
|
||||||
|
Given I turn on emacs-lisp-mode
|
||||||
|
And I turn on delete-selection-mode
|
||||||
|
And I insert:
|
||||||
|
"""
|
||||||
|
(defun abc (ghi) (message ghi))
|
||||||
|
(defun def (ghi) (message some-other-ghi))
|
||||||
|
"""
|
||||||
|
When I select "ghi"
|
||||||
|
And I mark all words like this in defun
|
||||||
|
And I type "hmm"
|
||||||
|
Then I should see:
|
||||||
|
"""
|
||||||
|
(defun abc (hmm) (message hmm))
|
||||||
|
(defun def (ghi) (message some-other-ghi))
|
||||||
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user