[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors 67d6579 388/434: Updated tests, README.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors 67d6579 388/434: Updated tests, README. |
Date: |
Sat, 7 Aug 2021 09:21:05 -0400 (EDT) |
branch: elpa/multiple-cursors
commit 67d6579eab87c5f3d7248ab8389186057fad38dc
Author: Andrea Orru <andreaorru1991@gmail.com>
Commit: Andrea Orru <andreaorru1991@gmail.com>
Updated tests, README.
---
README.md | 2 ++
features/mark-more.feature | 16 ++++++++++++++++
features/step-definitions/multiple-cursors-steps.el | 12 ++++++++++++
features/support/env.el | 2 ++
4 files changed, 32 insertions(+)
diff --git a/README.md b/README.md
index 10e7e4d..83a413f 100644
--- a/README.md
+++ b/README.md
@@ -57,6 +57,8 @@ You can [watch an intro to multiple-cursors at Emacs
Rocks](http://emacsrocks.co
- `mc/mark-next-word-like-this`: Like `mc/mark-next-like-this` but only for
whole words.
- `mc/mark-next-symbol-like-this`: Like `mc/mark-next-like-this` but only for
whole symbols.
- `mc/mark-previous-like-this`: Adds a cursor and region at the next part of
the buffer backwards that matches the current region.
+ - `mc/mark-previous-like-this-word`: Adds a cursor and region at the next
part of the buffer backwards that matches the current region, if no region is
selected it selects the word at the point.
+ - `mc/mark-previous-like-this-symbol`: Adds a cursor and region at the next
part of the buffer backwards that matches the current region, if no region is
selected it selects the symbol at the point.
- `mc/mark-previous-word-like-this`: Like `mc/mark-previous-like-this` but
only for whole words.
- `mc/mark-previous-symbol-like-this`: Like `mc/mark-previous-like-this` but
only for whole symbols.
- `mc/mark-more-like-this-extended`: Use arrow keys to quickly mark/skip
next/previous occurances.
diff --git a/features/mark-more.feature b/features/mark-more.feature
index d8d1025..f057678 100644
--- a/features/mark-more.feature
+++ b/features/mark-more.feature
@@ -14,6 +14,14 @@ Feature: Marking multiple parts of the buffer
And I type "sentence"
Then I should see "This sentence has the word sentence in it"
+ Scenario: Marking next like this, word
+ Given I turn on delete-selection-mode
+ When I insert "This text has the word text in it"
+ And I go to word "text"
+ And I press "C-S-c C->"
+ And I type "sentence"
+ Then I should see "This sentence has the word sentence in it"
+
Scenario: Skipping a mark
Given I turn on delete-selection-mode
When I insert "Here's text, text and text"
@@ -54,6 +62,14 @@ Feature: Marking multiple parts of the buffer
And I type "sentence"
Then I should see "This sentence has the word sentence in it"
+ Scenario: Marking prev like this, word
+ Given I turn on delete-selection-mode
+ When I insert "This text has the word text in it"
+ And I go to last word "text"
+ And I press "C-S-c C-<"
+ And I type "sentence"
+ Then I should see "This sentence has the word sentence in it"
+
Scenario: Skipping a prev mark
Given I turn on delete-selection-mode
When I insert "Here's text, text and text"
diff --git a/features/step-definitions/multiple-cursors-steps.el
b/features/step-definitions/multiple-cursors-steps.el
index b57bd03..2eb442e 100644
--- a/features/step-definitions/multiple-cursors-steps.el
+++ b/features/step-definitions/multiple-cursors-steps.el
@@ -12,6 +12,12 @@
(When "^I mark previous like this$"
(lambda () (call-interactively 'mc/mark-previous-like-this)))
+(When "^I mark previous like this word$"
+ (lambda () (call-interactively 'mc/mark-previous-like-this-word)))
+
+(When "^I mark previous like this symbol$"
+ (lambda () (call-interactively 'mc/mark-previous-like-this-symbol)))
+
(When "^I mark all like this$"
(lambda () (call-interactively 'mc/mark-all-like-this)))
@@ -144,6 +150,12 @@
(cl-assert search nil message word (espuds-buffer-contents))
(if (string-equal "front" pos) (backward-word)))))
+(When "^I go to last word \"\\(.+\\)\"$"
+ (lambda (text)
+ (goto-char (point-max))
+ (let ((search (re-search-backward text nil t)))
+ (cl-assert search nil "The text '%s' was not found in the current
buffer." text))))
+
(When "^I select the last \"\\(.+\\)\"$"
(lambda (text)
(goto-char (point-max))
diff --git a/features/support/env.el b/features/support/env.el
index 225c429..8410ca3 100644
--- a/features/support/env.el
+++ b/features/support/env.el
@@ -24,6 +24,8 @@
(global-set-key (kbd "C-S-c C->") 'mc/mark-next-like-this-word)
(global-set-key (kbd "C-S-c M->") 'mc/mark-next-like-this-symbol)
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
+ (global-set-key (kbd "C-S-c C-<") 'mc/mark-previous-like-this-word)
+ (global-set-key (kbd "C-S-c M-<") 'mc/mark-previous-like-this-symbol)
(global-set-key (kbd "M-!") 'mc/mark-all-like-this)
(global-set-key (kbd "M-$") 'mc/mark-all-like-this-dwim)
(global-set-key (kbd "C-$") 'mc/mark-all-dwim)
- [nongnu] elpa/multiple-cursors f0dcd06 323/434: Merge pull request #175 from lexa/master, (continued)
- [nongnu] elpa/multiple-cursors f0dcd06 323/434: Merge pull request #175 from lexa/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 2d6ffce 330/434: Support unmarking with no region. Change mc/mark-lines to preserve point., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 36b7025 348/434: Add alternative to mc/mark-next-like-this, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a393384 353/434: Merge pull request #227 from jtamagnan/insert_letters, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors e17851e 359/434: Fix click-toggling and make it robust (address all PR #239 comments), ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 8ac4ad3 361/434: Update README.md, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 9f4cdd0 368/434: Modified mc/mark-lines to allow skipping, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors fb0e71a 371/434: Remove mention of marmalade, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors be4fbc7 373/434: Mention MELPA Stable, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors dfaf621 392/434: Fix #254; remove mc/mark-next-like-this-extended, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 67d6579 388/434: Updated tests, README.,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors 277aef4 393/434: Make mc/list-file into defcustom, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 6327681 394/434: Merge pull request #267 from Fuco1/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f6bac94 402/434: Add note about M-x, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 3f382d2 416/434: Move variables before first use, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 9980faa 419/434: Add dabbrev state variables to mc/cursor-specific-vars, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 5ff2071 420/434: Merge pull request #351 from jrosdahl/dabbrev-expand, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 56d0373 075/434: Fix rectangular-region-mode when adding cursors over hidden areas of the buffer., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c3c4544 083/434: Place the file definition with the save definition., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 39e4eb2 091/434: Added mc-version of mark-more-like-this-extended, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b72e016 098/434: Don't require mark-multiple., ELPA Syncer, 2021/08/07