24 Commits

Author SHA1 Message Date
Andrew Scott
25b98b940c
Support commands with multiple read-chars
This change fixes commands that read-chars multiple times. Previously, two
stage commands like embrace-change would read the same char twice immediately
and avy-goto-char-timer would never stop reading input as a cached value was
always provided during the timer. Instead, the read-char prompt is included in
the cache key so that multiple different calls are cached separately and
accessible by the fake cursors.
2023-07-28 00:05:13 +01:00
Andrea Orru
67d6579eab Updated tests, README. 2016-07-17 16:40:56 +02:00
Steve Purcell
4bf9860bcc Use cl-lib instead of shimming, which breaks in older emacsen
Aliasing built-in (cl) functions to cl-lib versions when they are
available in older Emacs versions can seemingly lead to problems
including infinite loops during byte compilation.

Since cl-lib works with all Emacs versions supported by
multiple-cursors, just depend on this directly instead.

This commit makes the necessary changes, both to code, documentation and
package metadata.
2016-04-25 11:19:06 +12:00
Magnar Sveen
a393384b35 Merge pull request #227 from jtamagnan/insert_letters
Add mc/insert-letters function and test cases
2015-12-05 21:25:04 +01:00
Jules Tamagnan
8703b19872 Add mark-next-like-this-symbol function
* README.md: Update readme to include mark-next-like-this symbol
 * features/step-definitions/multiple-cursors-steps.el: Add phrase for
   mark-next-like-this-symbol
 * features/support/env.el: Add keyboard shortcut for
   mark-next-like-this-symbol and fix shortcut for
   mark-next-like-this-word
 * mc-mark-more.el: Add mc/mark-next-like-this-symbol function
 * multiple-cursors-core.el: Add mc/mark-next-like-this-symbol to
   functions to run only once
 * multiple-cursors.el: Add to readme section.
2015-12-04 16:56:50 -05:00
Jules Tamagnan
36b7025a35 Add alternative to mc/mark-next-like-this
* README.md: Add mc/mark-next-like-this-word tidbits to readme.
 * features/step-definitions/multiple-cursors-steps.el: Add
   mc/mark-next-like-this-word call.
 * features/support/env.el: Add shortcut for mc/mark-next-like-this-word
   as "C-S-c C->".
 * mc-mark-more.el: Add to mc/mark-next-like-this description to explain
   what happens when no region is selected. Add
   mc/mark-next-like-this-word function.
 * multiple-cursors-core.el: Add mc/mark-next-like-this-word to commands
   to run once.
 * multiple-cursors.el: Add information about mc/mark-next-like-this-word.
2015-12-04 13:34:47 -05:00
Jules Tamagnan
ca822cd0d0 Add mc/insert-letters function and test cases
* README.md: Add to readme, under special section.
 * features/insert-letters.feature: Add scenarios.
 * features/step-definitions/multiple-cursors-steps.el: Add call.
 * features/support/env.el: Add keybinding for insert-letters to H-3.
 * mc-separate-operations.el: Add function and helper functions.
 * multiple-cursors-core.el: Add insert-letters to functions that run once.
 * multiple-cursors.el: Add to readme.
2015-12-02 19:13:39 -05:00
lexa
bf9e8e95e0 Added testcase for mc-hide-unmatched-lines-mode 2014-08-04 23:45:21 +04:00
Magnar Sveen
94af07453d Add some readability enhancing step definitions 2013-06-07 08:03:05 +02:00
Magnar Sveen
69c99618f9 Use Carton for dev dependencies 2013-05-18 08:16:23 +02:00
Takafumi Arakaki
373dcbe002 Add a scenario for mc/mark-all-symbols-like-this 2013-03-10 06:44:18 +01:00
Magnar Sveen
97da9778fd Intercept some reading commands
- so you won't have to answer them for every single cursor

Fixes #15
2012-09-27 19:42:38 +02:00
Magnar Sveen
241e34ef2d Remove mark-multiple integration
- it caused more problems than it was solving

Fixes #9
2012-09-24 13:00:12 +02:00
Magnar Sveen
f6403eae7f Fix assertion
- don't toggle rectangular-region-mode, check if it is on.
2012-09-19 17:35:00 +02:00
Magnar Sveen
576bf90346 mc version of mark-previous-like-this 2012-07-24 20:54:37 +02:00
Magnar Sveen
ca0e0ae9d9 Tests for rectangular-region-mode 2012-07-23 09:18:31 +02:00
Magnar Sveen
608ceb4b81 Disable multiple-cursors-mode if there's only one cursor (the real one). 2012-07-20 15:59:01 +02:00
Magnar Sveen
0bfd611151 More consistent naming. 2012-07-20 15:07:43 +02:00
Magnar Sveen
4c56cb8b78 Tests for white-list prompt. 2012-07-20 08:23:43 +02:00
Magnar Sveen
50851e7ac2 Add more core tests. 2012-07-19 09:47:23 +02:00
Magnar Sveen
eda9952fc0 Finally got the tests running. :-) 2012-07-18 15:54:08 +02:00
Magnar Sveen
822bf18adf Update test. 2012-07-18 13:03:33 +02:00
Magnar Sveen
d3a29a2c6f Started working on multiple-cursor core tests.
- got a problem with detecting overlays in ecukes.
2012-06-07 19:35:15 +02:00
Magnar Sveen
ef7eddf1c5 Started adding feature tests. 2012-06-06 08:45:20 +02:00