[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors a4c4714 081/434: Remove multiple cursors
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors a4c4714 081/434: Remove multiple cursors when reverting buffer. |
Date: |
Sat, 7 Aug 2021 09:19:59 -0400 (EDT) |
branch: elpa/multiple-cursors
commit a4c471458780606cff946c5461e96c51c808bb0b
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>
Remove multiple cursors when reverting buffer.
---
multiple-cursors-core.el | 2 ++
todo.org | 23 +++++++++++------------
2 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index 85771e4..4bf389f 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -253,6 +253,8 @@ multiple cursors editing.")
(remove-hook 'post-command-hook 'mc/execute-this-command-for-all-cursors t)
(mc/remove-fake-cursors)))
+(add-hook 'after-revert-hook #'(lambda () (multiple-cursors-mode 0)))
+
(defmacro unsupported-cmd (cmd msg)
"Adds command to list of unsupported commands and prevents it
from being executed if in multiple-cursors-mode."
diff --git a/todo.org b/todo.org
index 0814503..3687b23 100644
--- a/todo.org
+++ b/todo.org
@@ -1,30 +1,29 @@
-* Ideas [1/5]
+* Ideas [3/5]
** DONE rectangular-region-mode
Switch to a specialized multiple-cursors mode, anchoring it to the current
cursor position. Moving around increases/decreases the size/number of
cursors,
to simulate vertical editing in textmate.
-** TODO Cycle through cursors
+** DONE Cycle through cursors
To scroll the buffer and watch all your cursors - make a keybinding for
promoting the next/previous fake cursor.
** TODO Create replacements for common non-working commands
- Possible to do C-s ... how about M-y ?
+ Possible to do C-s ...
Any way to make M-z just prompt for letter once?
** TODO mark-multiple-mode
mark-multiple has some advantages
-> simpler visuals, no extra cursors (matter of taste?)
-> moving out of the marked area quits the mode
- -> yank-pop actually works
-** TODO unknown command: Do for (a)ll, (o)nce or (i)gnore -> (did that work
ok? (k)eep doing that or (d)on't)
+** DONE unknown command: Do for (a)ll, (o)nce or (i)gnore -> (did that work
ok? (k)eep doing that or (d)on't)
unknown-command ran once - what now? (o)nce is enough, repeat for (a)ll,
(u)ndo - that did NOT work.
unknown-command ran for all - did that work as expected? (y)es, (n)o
what to do about unknown-command in the future? Run it (o)nce, or (s)top it
from being run.
-* BUGS: [0/4]
-** TODO with multiple regions active, C-d deletes only a char in the fake ones
-** TODO there's something going wrong with last-command/this-command?
+* BUGS: [4/4]
+** DONE with multiple regions active, C-d deletes only a char in the fake ones
+** DONE there's something going wrong with last-command/this-command?
expand-region works nicely, even collapse when we save er/history, but last
collapse puts all cursors in same spot
-** TODO clean up overlays when reverting buffer
-** TODO rectangular-region-mode fails when lines of the buffer have been
hidden (ref collapse in org-mode)
-* TODO: [4/6]
+** DONE clean up overlays when reverting buffer
+** DONE rectangular-region-mode fails when lines of the buffer have been
hidden (ref collapse in org-mode)
+* TODO: [5/6]
** DONE (set-marker MARKER nil) for performance
** DONE C-g deactivates regions first, before disabling multiple-cursors
** DONE more state to save per cursor: er/history
@@ -33,4 +32,4 @@
mark-multiple goes back to being the util? or just dies?
given the problem with extract-var and undo, may just kill mark-multiple.
problem with that is: C-g when doing rename-tag shouldn't go to
multiple-cursors.
-** TODO add tests
+** DONE add tests
- [nongnu] elpa/multiple-cursors d7be50e 041/434: rectangular-region-mode, (continued)
- [nongnu] elpa/multiple-cursors d7be50e 041/434: rectangular-region-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 45488df 052/434: yank-pop is supported, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 6f9911f 054/434: Add more explanatory prose., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 466d036 063/434: Prompt for inclusion in white/black-lists when met with an unknown command, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 092b0a1 074/434: Cycle through cursors with C-v and M-v, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 0512561 076/434: Skip lines in rectangular-region-mode that are too short for the rectangle., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 84ef509 072/434: Save users own white/black lists in .mc-lists.el, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 15e88c6 071/434: Move more mode-specific cmds into personal lists., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 0bfd611 068/434: More consistent naming., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors ca0e0ae 084/434: Tests for rectangular-region-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a4c4714 081/434: Remove multiple cursors when reverting buffer.,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors 36b262c 086/434: Added mc-version of mark-next-like-this, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 491b206 103/434: Use forward-line instead of next/previous-line in lisp code., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b1ea7f2 095/434: Add licences to all el-files., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f6403ea 112/434: Fix assertion, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 6481972 113/434: Update ecukes, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 241e34e 123/434: Remove mark-multiple integration, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f040a33 143/434: Add execute-extended-command to run-once list, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors ef7eddf 021/434: Started adding feature tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 00896cf 030/434: Refactor: simplify saving of state for cursors., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c07d761 009/434: Some thoughts about combining with mark-multiple., ELPA Syncer, 2021/08/07