As most of you know, I’m a huge fan of the Swiper/Counsel/Ivy suite and consider it one of my most important packages. I’m sure I use it more than any other package or set of commands. I’m also a fan of Multiple Cursors.
Álvaro Ramírez has a quick post that shows them working together. I think I might have known you could do this at one time but I’d long since forgotten. Abo-abo’s post announcing the integration was in 2015 and I vaguely remember thinking, “Oh, that’s neat. I’ll have to remember to use it.” Sadly, I never did.
Take a look at Ramírez’s post to see it in action. There are a couple of things to know if you want to try it out:
- The binding to Ctrl+7 is enabled by default so you don’t have to do anything about that unless you want to change it.
- You must add
swiper-mc
to themc/cmds-to-run-once
list. I messed this up initially and had to fix it by hand.
This is another one of those tricks that you probably won’t use everyday but it’s just perfect for finding and changing every occurrence of some symbol. It’s also handy for making mass deletions in a buffer list as abo-abo demonstrates in his original post.