mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2026-02-04 14:22:24 +00:00
Add mc/sort-regions and mc/reverse-regions
This commit is contained in:
19
features/sort-and-reverse.feature
Normal file
19
features/sort-and-reverse.feature
Normal file
@@ -0,0 +1,19 @@
|
||||
Feature: Sorting and reversing cursor regions
|
||||
|
||||
Scenario: Reversing regions
|
||||
Given I have cursors at "text" in "This text contains the word text thrice (text here)"
|
||||
When I press "M-f"
|
||||
And I press "C-f"
|
||||
And I press "C-SPC"
|
||||
And I press "M-f"
|
||||
And I press "H-1"
|
||||
Then I should see "This text here the word text thrice (text contains)"
|
||||
|
||||
Scenario: Sorting regions
|
||||
Given I have cursors at "text" in "This text contains the word text thrice (text here)"
|
||||
When I press "M-f"
|
||||
And I press "C-f"
|
||||
And I press "C-SPC"
|
||||
And I press "M-f"
|
||||
And I press "H-2"
|
||||
Then I should see "This text contains the word text here (text thrice)"
|
||||
@@ -26,6 +26,8 @@
|
||||
(global-set-key (kbd "M-$") 'mc/mark-all-like-this-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-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)
|
||||
(global-set-key (kbd "H-SPC") 'set-rectangular-region-anchor)
|
||||
(switch-to-buffer
|
||||
|
||||
Reference in New Issue
Block a user