[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors 49027c6 262/434: Add basic tests for 'mc/
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors 49027c6 262/434: Add basic tests for 'mc/mark-all-dwim' |
Date: |
Sat, 7 Aug 2021 09:20:38 -0400 (EDT) |
branch: elpa/multiple-cursors
commit 49027c67178afadb314c885e5649b421c4b6de72
Author: Maciej Katafiasz <mathrick@gmail.com>
Commit: Maciej Katafiasz <mathrick@gmail.com>
Add basic tests for 'mc/mark-all-dwim'
---
features/mark-all-dwim.feature | 26 ++++++++++++++++++++++++++
features/support/env.el | 1 +
2 files changed, 27 insertions(+)
diff --git a/features/mark-all-dwim.feature b/features/mark-all-dwim.feature
index 9eca714..7870a6a 100644
--- a/features/mark-all-dwim.feature
+++ b/features/mark-all-dwim.feature
@@ -17,6 +17,16 @@ Feature: Mark all do-what-I-mean
(defun abc (hmm) (message hmm))
(defun def (ghi) (message some-other-ghi))
"""
+ When I press "C-g"
+ And I go to the front of the word "hmm"
+ And I press "C-$"
+ And I type "foo"
+ Then I should see:
+ """
+ (defun abc (foo) (message foo))
+ (defun def (ghi) (message some-other-ghi))
+ """
+
Scenario: Mark all symbols by pressing twice
Given I turn on emacs-lisp-mode
@@ -36,3 +46,19 @@ Feature: Mark all do-what-I-mean
(defun abc (hmm) (message hmm))
(defun def (hmm) (message hmm))
"""
+ When I press "C-g"
+ And I press "M-> RET"
+ And I insert:
+ """
+ (defun def (hmm-hmm) (message hmm))
+ """
+ And I go to the front of the word "hmm"
+ And I press "C-$"
+ And I press "C-$"
+ And I type "humm"
+ Then I should see:
+ """
+ (defun abc (humm) (message humm))
+ (defun def (humm) (message humm))
+ (defun def (humm-humm) (message humm))
+ """
diff --git a/features/support/env.el b/features/support/env.el
index 4f6af30..3ce7c91 100644
--- a/features/support/env.el
+++ b/features/support/env.el
@@ -24,6 +24,7 @@
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
(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)
(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)
- [nongnu] elpa/multiple-cursors bdc4d9a 124/434: Add some more commands to default run-once/run-for-all lists., (continued)
- [nongnu] elpa/multiple-cursors bdc4d9a 124/434: Add some more commands to default run-once/run-for-all lists., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 0f54f98 133/434: Bump to 1.1.1 for bugfix, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a0f771f 151/434: Include interactive commands for deselecting prev/next, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 8a12e97 148/434: Mention region-bindings-mode in README, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 19b1a83 160/434: Refactor mc/first-cursor-after and mc/last-cursor-before to not use extreme., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 9ac7675 155/434: Added tests for mc/cycle-forward and mc/cycle-backward with their new looping behaviour, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors dce196c 167/434: Merge pull request #28 from gvol/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c3b2d84 164/434: Merge pull request #23 from segv/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors be4067d 169/434: Fixed mode-line not showing up, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 2345958 260/434: Run ecukes tests in --no-win mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 49027c6 262/434: Add basic tests for 'mc/mark-all-dwim',
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors 61388fe 263/434: Add 'mark-all-dwim' tests for selection, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors bf4b0c6 266/434: Refactor mark-dwim tests to share a common background, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 9f91a04 267/434: Add 'mc/mark-all-dwim' to README, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 2682e48 285/434: Merge pull request #116 from gvol/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 5fead7d8 286/434: Update README with @gvol contribution., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 238fb97 291/434: Add edge case scenarios which test behavior of mc/cycle-forward and mc/cycle-backward, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 7b4dd88 295/434: Merge pull request #129 from jistr/readme_typo, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors bf9e8e9 309/434: Added testcase for mc-hide-unmatched-lines-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 7156651 313/434: fixed documentation, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 19f842d 318/434: Undo after leaving mc mode will restore cursors as they was, ELPA Syncer, 2021/08/07