bew / dotfiles

All my dotfiles in one place!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Powerful multi-cursor selection & action, similar to Kakoune

bew opened this issue · comments

Kakoune idea: select stuff then do actions on them.
The select stuff part is very powerful, with multicursor, filtering, regex search in the existing selections, and much more..
https://kakoune.org/why-kakoune/why-kakoune.html

Crazy cool implementation in emacs (from at least 9 years ago!):
http://emacsrocks.com/e13.html (video url: https://youtu.be/jNa3axo40qM)

Current tracking issue on Neovim's tracker: neovim/neovim#7257

Pretty nice and really powerful vim/neovim implementation (better than an older one that I tried long time ago):
https://github.com/mg979/vim-visual-multi
It looks like it works pretty seamlessly with existing normal mappings & actions... However it's not the best-in-class implementation as it needs to re-implement a lot of things.. because Neovim doesn't have a way to catch an arbitrary motion (to re-apply it in multiple places).


UNRELATED TO MULTI-CURSORS but it's in the 'why kakoune' page linked above, and I really like this quote:
(About why bother with all of this and not simply use a standard editor)

Think about it this way: Yes, programming is about thinking, concentrating on a design problem, or on a bug, understanding what needs to be done, designing a solution, and then writing it. More often that not, once you get to the writing phase, most of the thinking, problem solving, part is done, now the remaining task is just editing the code. Modal editors make this phase both faster, and more fun.

There's a pure-Lua neovim impl I spotted: https://github.com/smoka7/multicursors.nvim

The Multicursor Plugin for Neovim extends the native Neovim text editing capabilities, providing a more intuitive way to edit repetitive text with multiple selections. With this plugin, you can easily create and manage multiple selections, perform simultaneous edits, and execute commands on all selections at once.

Looks nice and focused, hope to try it soon!