News for hackers. Stuff that matters.
Re:NotepadNext – a cross-platform reimplementation of Notepad++ by rezonant on Thursday March 28, 2024 @04:56PM (#39857215)
Any time you need to make the same edits in multiple places. I use it to mass edit array items for example by using the highlight / add cursor to identical text feature in VS Code (Ctrl+D). I even use it to copy data out of the browser and mass edit it into data structures-- often there will be some pattern to the pasted data even if it's garbage, so being able to quickly set up multicursors around the patterns in the text makes this sort of task much easier, if you are luckily on how the data pastes out.

Multicursors are the number one editor innovation of the last ten years that developers should get comfortable with-- once you start to use them you won't want to use an editor without them.

Re:NotepadNext – a cross-platform reimplementation of Notepad++ by innocenat on Thursday March 28, 2024 @11:30PM (#39860390)
Personally while there are some task that's easier with multiple cursors, I have personally yet to find any use case where regexp replace in selections doesn't work as well.
Re:NotepadNext – a cross-platform reimplementation of Notepad++ by germandiago on Thursday March 28, 2024 @11:40PM (#39860456)
I find Emacs Macros and rectangular editing as more useful in lore situations than multiple cursors.

As for regexps, the syntax in Emacs is hell, but I do know Emcacs has very powerful edit/replace tools.

Re:NotepadNext – a cross-platform reimplementation of Notepad++ by cylinder714 on Friday March 29, 2024 @01:19AM (#39860960)
"Emcacs"...I like it.
Re:NotepadNext – a cross-platform reimplementation of Notepad++ by germandiago on Friday March 29, 2024 @06:20AM (#39862399)
Yeah... typing fast and from the phone has this problem
Re:NotepadNext – a cross-platform reimplementation of Notepad++ by overtomanu on Friday March 29, 2024 @05:28AM (#39862099)
Multi-cursor is more flexible than rectangular selection. You can skip or delete words of varying length etc. It is certainly less powerful than vim macro and regex, but it's easy to use because 1) there are less shortcuts to remember 2) no need to think too much like figuring out regex for simple tasks 3) it gives instant feedback

Video showing this https://youtu.be/lhFNWTAIzOI?t=28

Re:NotepadNext – a cross-platform reimplementation of Notepad++ by siproprio on Saturday March 30, 2024 @04:31AM (#39872947)
skill issue tbh
Re:NotepadNext – a cross-platform reimplementation of Notepad++ by edflsafoiewq on Friday March 29, 2024 @01:33AM (#39861008)
There's a reason people use visual editors and not ed.
Re:NotepadNext – a cross-platform reimplementation of Notepad++ by treflop on Friday March 29, 2024 @02:25AM (#39861222)
Wouldn’t remotely compare regex to ed.

I also haven’t found a use for multiple cursors.

Writing a regex is quick and easy.

Re:NotepadNext – a cross-platform reimplementation of Notepad++ by madacol on Friday March 29, 2024 @08:41AM (#39863358)
You cannot edit in real-time with regex

With regex, you need to plan everything you need to do and then surgically do it.

With multiple cursors, you only need to know (roughly) where you need to change, the rest you figure it out on the fly.

Re:NotepadNext – a cross-platform reimplementation of Notepad++ by lf-non on Friday March 29, 2024 @11:23AM (#39865175)
In editors like vim/emacs it is possible and common.
Re:NotepadNext – a cross-platform reimplementation of Notepad++ by lenkite on Friday March 29, 2024 @02:29AM (#39861246)
I guess with rectangular selection and macros, VIM folks don't find much use for multiple cursors.