Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [multiple-cursors]

The tag has no usage guidance.

0
votes
1answer
20 views

How faster show multicursors on the end of all lines?

Som teext 1111111111 2 33333 4444444444444 5555 9999 6666 aaaa aaaaaa zzzzzzzzz hello prev do this My steps: Put cursor to the beginning of first line (1111111111) Press C-> (mc/mark-next-...
0
votes
1answer
29 views

How show multicursor only from cursor position?

emacs 26 in my scratch buffer I select dash Now I want to show multicursors only from cursor position (line 5). M-x mc/mark-all-like-this But it show multicursors in whole buffer I also try M-x ...
0
votes
2answers
163 views

How can I use multiple cursors in evil/spacemacs

There are multiple multiple-cursors implementations for emacs. I have the impression that extra work has been required to make them work well in evil and spacemacs in particular. I imagine the ...
0
votes
0answers
23 views

Emacs 26.1 `transient-mark-mode` enabled after killing region

I recently moved to emacs 26.1. However, since then I have a problem that I didn't have in the previous version (I was using 24). I always use transient-mark-mode disabled. However, when I'm in ...
1
vote
1answer
29 views

Is it possible to use increments of two and use padding zeros on mc/insert-numbers?

I'm using mc/insert-numbers quite often for numbering classes on html. I know that I can use C-u 6 M-x mc/insert-numbers to start counting from 6, but how could I use it to create a list like: 06 08 ...
1
vote
1answer
42 views

how to select and edit text in multiple different lines

everyone I'm trying to achieve a behaviour described here Fundamentals of multiple-cursors. Particulraly the following comment: Edit several places simultaneously. Either mark several instances of a ...
2
votes
1answer
68 views

Why does kill-region (C-w) only kill the region marked by the first cursor when using multiple cursors

Having selected five regions with five cursors using multiple-cursors-mode: why is it that when I press C-w or M-x kill-region it is only done for the primary cursor?
1
vote
1answer
43 views

Trying to upcase single character (or region) selected *with multiple-cursors active*

I'm trying to get used to multiple-cursors. It's super useful but the way it interacts with many emacs builtin functions seems weird - perhaps I just don't quite understand how it works. Eg. my ...
1
vote
1answer
167 views

multiple-cursors and return key

Within multiple-cursors-core.el <return> key is bound to multiple-cursors-mode which always ends multiple-cursors-mode, when I'd like to insert a new line. I can unbind the key with (define-key ...
0
votes
0answers
31 views

multiple-cursors and counsel-yank-pop

How to get counsel-yank-pop to play nicely with multiple-cursors? There are 2 modes of handling commandos with multiple cursors: mc/cmds-to-run-for-all and mc/cmds-to-run-once. When counsel-yank-...
6
votes
1answer
162 views

How to scroll while using multiple cursor?

I use a lot multiple cursor and sometimes I have to select some words which are off the screen, in sublime text I do not encounter any problem, I can just scroll and continue selecting words. This, ...
5
votes
1answer
78 views

Select only even lines emacs

How can I put a cursor (with multiple-cursors) in the beginning of every even line in emacs? Can I use the regular expression .*\n.*\n?
1
vote
1answer
36 views

Cleaning the buffer-undo-list of unwanted entries

When multiple-cursors is deactivated, I would like to remove from the buffer-undo-list all entries that look like this: (apply activate-cursor-for-undo 40) (apply deactivate-cursor-after-undo 38) ...
1
vote
0answers
31 views

Recentering if multiple-cursors goes out the screen?

How can I make the functions of multiple-cursors recenter if the next or previous candidate if not show in current screen automatically? Although I known I can do it by C-v and M-v manually. Thanks in ...
4
votes
1answer
199 views

multiple-cursors + isearch (or phi-search) with Emacs 24+?

For several years, I've been happily using multiple-cursors with phi-search to run interactive searches with several cursors at once with Emacs 23. I would create my multiple cursors, then run phi-...
1
vote
0answers
64 views

emacs multiple-cursors insert letters (numbers) issue

I've created an ascii video at https://asciinema.org/a/63b67gx2hm5pasdvjkhiyq4ud to demo my emacs issue with multiple-cursors. I created 4 lines of text and created 4 cursors (see 00:36). Then I use C-...
0
votes
1answer
54 views

how can I change the number of cursors using multiple cursors mc/mark-next-lines?

I encounter many situations where I'd like to use mc/mark-next-lines but I don't know how to change the number of cursors. When I do C-u 2 mc/mark-next-lines I get 7 cursors instead of 3. It would be ...
0
votes
1answer
96 views

Question regarding Emacs Rocks! Episode 13: multiple-cursors [duplicate]

I'm watching the great Emacs Rocks! Episode 13: multiple-cursors vide at youbube: https://www.youtube.com/watch?v=jNa3axo40qM There are several places I'm not clear how the author did it. At 0:32: ...
3
votes
1answer
1k views

How to edit multiple files at once?

Is there a way to open multiple buffers that are open at the same time? The idea is to be able to refactor code and variable names in multiple files at once. I know that dired-do-find-regexp-and-...
8
votes
0answers
148 views

Cycle through multiple cursors to enter different text at each point?

When multiple cursors has marked multiple points in a buffer you can use C-v (mc/cycle-forward) to cycle through and look through all cursors while typing for all cursors. I'm wondering how to enter ...
9
votes
2answers
311 views

Multiple cursors package makes emacs run slow

I'm using the package Multiple Cursors in an html file and it's awesome for a few cursors but if I create more than 30 or 50 cursors it gets terribly slow and it takes about five or six seconds just ...
5
votes
1answer
387 views

Why does multiple cursors use the same char for all cursors with zap-to-char but not with zap-up-to-char?

This a follow up to my earlier question Why does multiple-cursors use the same char for all cursors with iy-go-to-char, but not with zap-up-to-char?. As I describe in that question, for some commands ...
3
votes
1answer
291 views

Enumerating with multiple cursors?

Say you would for instance define 5 variables with multiple cursors and you wanted to name them x_i where i ∈ {1,2,3,4,5}. Instead of writing 5 rows with x_ and then filling the rest manually, is ...
6
votes
0answers
106 views

How to control appearance of extra cursors?

I've just switched to “I-beam” cursor shape, it's set this way: (setq-default cursor-type '(bar . 1) cursor-in-non-selected-windows nil) But when I create additional cursors they are displayed as ...
7
votes
1answer
854 views

Copying text selected by multiple cursors to a new buffer

Say we want to kill the region selected by all cursors in multiple-cursors, and yank it all to a new, empty buffer. How do you do that with multiple-cursors? Note that a simple copy and paste of the ...
5
votes
1answer
181 views

Keeping only the lines with the cursors in multiple-cursors

Say we have a file with several cursors. Not all lines have cursors, but every cursor is on a different line. How can I kill all the lines without cursors? I couldn't find a single mc command for ...
1
vote
1answer
224 views

Use multiple cursor if region is active, otherwise use CUA, how?

I’m trying to implement this when I press C-return: If there’s an active region, it activates multiple cursors by calling mc/edit-lines If there’s no active region, it initiates rectangular selection ...
1
vote
1answer
152 views

Why does multiple-cursors use the same char for all cursors with iy-go-to-char, but not with zap-up-to-char?

Both iy-go-to-char and zap-up-to-char take a prefix argument and a character argument prompted for in the minibuffer. Both functions seems to implement this by using (interactive "p\ncPrompt string: ")...
3
votes
4answers
686 views

Reshape a list into rows

I am looking for an easy way to turn a list such as this: one, two, three, four, five, ... into something more like this: one, two, three, four, five, six, seven, eight, nine,...
1
vote
1answer
101 views

How to turn off iedit-mode quickly after finishing an edit?

I like how multiple-cursors is turned off when pressing RET, and this is not the case for iedit-mode, how can I emulate that behavior?
54
votes
4answers
11k views

Fundamentals of multiple-cursors

I recently learned about multiple-cursors, and it looks like a very useful package. I went through the documentation on the original repo, but the commands still look a bit obscure to me. I then ...