Live data from Hacker News

NotepadNext – a cross-platform reimplementation of Notepad++

github.com

181–190 of 317 posts

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

#181

The startup speed for this app is really good. From my quick testing it seems like it is as fast or slightly faster than npp. I am surprised that QT can be that fast. I recall this line from the Sumatra PDF developer on why he chose win32 only: >The only way for one person to even attempt cross-platform app is to use a UI abstraction layer like Qt, WxWidgets or Gtk. >The problem is that Gtk is ugly, Qt is extremely b…

GTK+ 3 and 4 are quite visually ugly, but you can get Windows classic-styled themes for both (from Chicago95 and B00merang project respectively) that will make them far more usable.

Do those themes mimic the Windows look or do they ask Win32 to draw butons, windows, menus, etc...?

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

#182
post #105
post #63

Earlier quoted context omitted.

I wrote a custom mod more than 15 years ago for SciTE that exposed its plugin API to Ruby and wrote some of my own plugins. It didn't support multiple cursors and I instantly switched to Sublime as soon as I discovered that feature, never looked back.

What are multiple cursors used for?

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

#183

Earlier quoted context omitted.

If you're using the same variable name across the file, but want to change only a couple of references to something else, it fills that "I need to do this more than once, but in a bit of an easier to reach, fancier way than with find and replace" niche.

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 do it directly in the editor.

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

#184

Earlier quoted context omitted.

If you're using the same variable name across the file, but want to change only a couple of references to something else, it fills that "I need to do this more than once, but in a bit of an easier to reach, fancier way than with find and replace" niche.

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.

It helps when it is a bit more interactive, i.e when I only need to replace some of the occurrences versus everything.

Also when working with lists it is useful, you spawn cursors on , or < or whatever symbol you've got at a fixed location between lines, and then you can manipulate text in any number of otherwise different lines.

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

#185
post #174

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…

Notepad++ originated at a time when there weren't many code editors for most of the new, growing languages (perl, python, js), or for editing xml and json, especially on windows. Many of the "good" code editors were expensive and enterprisey, or they were limited to linux, or they had an extremely steep learning curve (vim, emacs). Notepad++ worked on everything, was free, installed quickly, and it was fast. I've use…

I have it on a few thousand servers in my department, mostly as a Notepad that can do more, like comment color or editing small config files of all sorts. It is far from the days I used to write entire small apps in Notepad ++, but we still use it and there is no plan to replace it unless they do something that puts us in danger (ex: stop fixing bugs/security issues).

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

#186

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…

I have used Notepad++ for more than 10 years and I don't think I have ever tried replacing my IDE with it. I don't think it should be use as an IDE replacement but a file editor.

It is the other way around: 10 yeas ago I was using Notepad++ for writing small apps and I replaced it with IDE (VS Code). It makes no sense to replace a decent IDE with Notepad++.

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

#187
post #178

Shameless plug: I'm working on a multi-platform code editor similar to NP++ and some new editors like Zed called ecode, that tries to be a fresh take on code editors using some modern tools and technologies like LSPs. I started working on it after using Geany for many years but finding Geany lacking some essential features for my needs. ecode is developed with speed in mind and has a very fast startup time. [1] https…

Nice work. Does it have auto-save, like npp?

Thanks! Currently it does not but it's not something particularly complex to implement so I can add it if there's interest! I haven't used NP++ in some time so I don't remember exactly how it behaves but I'll take a look.

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

#188

A colleague of mine, who certainly was an extremely experienced and knowledgeable programmer, used Notepad++ for everything . Certainly was interesting to see how good you can be even with relatively simple tools.

I did the same 10 years ago, but now VS Code is a much more productive tool for me; for example, extensions, Git integration and markdown preview.

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

#189

I hope this is better than other offerings on Linux. I've tried a few and none of them come close. Fingers crossed. I hope this will be compatible with np++ plugins which makes np++ even better.

Certainly the windows release fails on my laptop.

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

#190
post #49

Notepad++ (and this one here) are based on Scintilla [0]. It's worth pointing it out because it is a high-quality open source code editor component. SciTE [1] is the "official" demo-editor for Scintilla and was last updated on March 9th 2024. The history reaches back to 1999. [0] https://www.scintilla.org/ [1] https://www.scintilla.org/SciTE.html

wxWidget's wxStyledTextCtrl is based on Scintilla, too: https://wiki.wxwidgets.org/WxStyledTextCtrl
Post reply on HN