Live data from Hacker News

NotepadNext – a cross-platform reimplementation of Notepad++

github.com

271–280 of 317 posts

Re: NotepadNext – a cross-platform reimplementation of Notepad++

#272
post #192

Earlier quoted context omitted.

Try CudaText.

Its a pain to install due to dependencies on libqt5pas1 (which doesn't work with the version provided on Ubuntu 22.04). I was able to install via snap but it takes way too long to start up (even vscode starts faster).

Oh, I've heard that snaps are terrible. I'm using flatpak on Fedora and Cuda is starting much faster than VSCode.

Re: NotepadNext – a cross-platform reimplementation of Notepad++

#273

Earlier quoted context omitted.

Most editors these days should have "rename" functionality which is very aware of how that symbol is used across a codebase. M-x lsp-rename in emacs, for example works great, if you're using lsp.

Yes but this is more general, allowing you to use it in more cases. For instance, I use it heavily when converting old JavaScript to modern ES/TS. Using "var" everywhere? Replace them all with let. Using anonymous functions instead of lambdas, easy to change those all over (provided there's no "this" dependencies) Have two thousand strings which all need the same edits? No need to do a find/replace operation, you can…

> Have two thousand strings which all need the same edits? No need to do a find/replace operation, you can do it directly in the editor.

I might be missing something here, but how is making 2000 individual selections better than `:%s/oldstring/newstring/g`?

I'm guessing that you have a rule for setting up those 2000 selection, or something?

I mean, even for like 5 identical edits, the regex is going to be faster, so you must have a short way of performing the multi-selection.

Re: NotepadNext – a cross-platform reimplementation of Notepad++

#274

Earlier quoted context omitted.

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.

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.

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++

#275

Just to provide a diversity of opinion: I've heard basically nothing but positive feedback about Notepad++ over the years. However, I tried it out for about 10 seconds before closing it and never looked back. The, what I call "millions of tiny buttons" interface is ugly and distracting. I've never liked IDEs or other apps with this UI style. I use a JetBrains IDE now that has just as many features but the UI is not c…

The new Jetbrains ui is hard to like. It’s form over function. The old ui (thankfully still available). Having to hover over a hamburger button just to cause it to draw the menu bar options then slide the mouse across to what you want is annoying. The new commit window alt+0 is better, the old modal always felt tacked on when everything else is a docked panel.

The old ui was much more compact (even compared to compact mode on new ui) and maximised real estate for code over ui elements, which is what you want from a coding editor. It's definitely form over function here and yet another regressive move in the steps Jetbrains seems to be taking of late.

Re: NotepadNext – a cross-platform reimplementation of Notepad++

#276

Earlier quoted context omitted.

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.

"Emcacs"...I like it.

Yeah... typing fast and from the phone has this problem

Re: NotepadNext – a cross-platform reimplementation of Notepad++

#277

Notepad++ has the best feature ever: Autosave without a filename. Just close and open and everything is the way you've left it.

VSCode and Sublime Text do that too. And recently Microsoft even added it to Notepad.

Ah didn't know!

Re: NotepadNext – a cross-platform reimplementation of Notepad++

#278

Notepad++ has the best feature ever: Autosave without a filename. Just close and open and everything is the way you've left it.

And it has caused me so much pain. Open a file big enough to crash np++? Good luck getting out of it.

Eventually I figured out it only reloaded the file if you can few enough tabs open so I could just open a bunch of other files, let it crash, open some more and then eventually it wouldn't load the huge file, so I could close the tab. But still, such a pain.

It was many years ago and I was young and stupid, so there's probably a much better way. But I've moved on to Linux and to Emacs now

Re: NotepadNext – a cross-platform reimplementation of Notepad++

#279

I very much miss Notepad++ for making quick notes, and then being able to close the window without being asked whether I'd like to save the document. This, and auto-save (so not losing documents if you forget to save) is one of the main reasons I replaced Notepad with ++. Rather quickly, I found that I had to completely remove Notepad so muscle memory would stop guiding me to it. Good times (and sad ones; I lost a lo…

Occasionally, someone will submit their new text editor to Hacker News and the first thing I do is check if it quietly saves sessions upon closure. It's amazing how many people don't bother implementing this indispensable feature.

It's always amazing how someone's "indispensible feature" is something that someone else couldn't care less about.

I don't even really use the concept of open files. I mostly switch files using a fuzzy finder that lists files in the git repo. So what files are "open" in my session is irrelevant to my workflow. (Unless they have unsaved changes of course, but I basically always just use "Save All" so even that state is minimal.)

Re: NotepadNext – a cross-platform reimplementation of Notepad++

#280

Earlier quoted context omitted.

I hate cluttered flat surfaces as much as the next guy, but I don't put my toaster away when I'm not using it. It's stays right on the counter because it's convenient for it to be there.

> I don't put my toaster away when I'm not using it I actually do lol

All depends on how much space you got (and large space needs cleaning). I have a food dehydrator. It is a nice tool but too large so it is in the attic, gathering dust. I also have two airfryers. These are used daily. However the toaster is rarely used. Only thing is, would you put such away when still hot? Needs to cool down first.
Post reply on HN