mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2026-02-04 06:12:25 +00:00
Added mc-version of mark-all-in-region
This commit is contained in:
@@ -85,3 +85,12 @@ Feature: Marking multiple parts of the buffer
|
||||
And I select "text"
|
||||
And I press "M-!"
|
||||
Then I should have 3 cursors
|
||||
|
||||
Scenario: Marking in region
|
||||
Given I turn on delete-selection-mode
|
||||
When I insert "Here's text, text and text"
|
||||
And I select "text, text"
|
||||
And I press "M-# text <return>"
|
||||
And I type "more"
|
||||
Then I should have 2 cursors
|
||||
And I should see "Here's more, more and text"
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
(global-set-key (kbd "M->") 'mc/mark-next-like-this)
|
||||
(global-set-key (kbd "M-<") 'mc/mark-previous-like-this)
|
||||
(global-set-key (kbd "M-!") 'mc/mark-all-like-this)
|
||||
(global-set-key (kbd "M-#") 'mc/mark-all-in-region)
|
||||
(global-set-key (kbd "H-SPC") 'set-rectangular-region-anchor)
|
||||
(switch-to-buffer
|
||||
(get-buffer-create "*multiple-cursors*"))
|
||||
|
||||
Reference in New Issue
Block a user