BBEdit
★★★★★
A powerful, versatile (and venerable!*) text editor for macOS that still manages to be fast and stay out of your way so you can just write. It’s light enough that I use it for jotting down notes instead of opening TextEdit, and it’s capable enough that I can open multi-megabyte files, filter duplicates, sort, do regex-based search and replace, run external commands, and more. On occasion I’ve opened giant CSVs to run a search-and replace, sort, and then filter in here, because I can finish the whole thing faster than I can get Excel or Numbers to even load the file.
There’s a free mode that replaces TextWrangler (which used to be the free-equivalent), but I’ve been quite happy to pay for the full version. If you’re coming from Windows and miss Notepad++, this is the app to use.
Available from Bare Bones Software, Mac App Store.