News for hackers. Stuff that matters.
Re:Kakoune Code Editor by jzm2k on Tuesday January 18, 2022 @01:49AM (#29975952)
I think multicursor is more flexible. I can visually select N lines and use regex to place the cursors and then modify the text in multiple places simultaneously. Kakoune also provides a multicursor similar to the visual block mode that Vim offers but I find myself using that only in very specific situations like "these 5 lines should all start with this keyword" or whatever.
Re:Kakoune Code Editor by usrbinbash on Tuesday January 18, 2022 @04:28AM (#29976914)
imo, Multiline cursors are one of these features that look and feel cool, but are rarely, if ever, really useful.
Re:Kakoune Code Editor by kybernetikos on Tuesday January 18, 2022 @06:19AM (#29977609)
That's shocking to me. Ctrl-D in visual studio code and alt-J in jetbrains are some of my most used key combinations. Even alt-click in visual studio code is sometimes extremely useful. It's like the ability to record and play back a macro multiple times, except you do it interactively and can see / fix / add things as you go.
Re:Kakoune Code Editor by christophilus on Tuesday January 18, 2022 @05:00AM (#29977099)
I use it daily and find it immensely useful.
Re:Kakoune Code Editor by jzm2k on Tuesday January 18, 2022 @05:03AM (#29977117)
That's also what I thought as a Vim user before I had access to Kakoune's multiline editing. It changed my mind and might change yours too if you give it a chance
Re:Kakoune Code Editor by usrbinbash on Tuesday January 18, 2022 @08:41AM (#29978868)
I used editors with multiline editing capabilities in the past.

There are only 2 usecases where it was of any value to me: If I have to write multiple lines in a similar fashion, or if I have to edit the same thing in a similar fashion in several places at once.

Both can be done much easier by using a regular expression.

Re:Kakoune Code Editor by jzm2k on Tuesday January 18, 2022 @09:35AM (#29979707)
I disagree. In the past I've used regex to do that and now that I have access to a multicursor, I won't be going back. I think with regex you don't get the same kind of visual feedback that you get from a multicursor which is why I (and many other Kakoune users as well) like it so much. If you're happier with regex and feel like you don't need multicursor, that's great.
Re:Kakoune Code Editor by apocolyps6 on Tuesday January 18, 2022 @11:13AM (#29981319)
In case it helps anyone, doing regex-based search/edit in vim was annoying until I found this plugin. https://github.com/haya14busa/incsearch.vim
Re:Kakoune Code Editor by doppioandante on Tuesday January 18, 2022 @07:32AM (#29978089)
Ditto. I rarely use multiple cursors in other editors, but I use them _constantly_ in Kakoune. I have been using it for multiple years. The composability of the command language is what makes it shine.