Hacker News new | ask | show | jobs
by KZeillmann 3535 days ago
I just want to be able to look at the first 10 lines of a 15MB JSON I downloaded of the internet without having the entire application crash. It doesn't seem like too much to ask. There's a big difference between asking for a 15MB file and a 500MB file. 15MB is a pretty reasonable size for a text editor to be able to open without crashing, IMO. Unfortunately, I have to peek at those in Vim instead. Nothing wrong with Vim, but I hate having to switch editors to look at one file.
3 comments

If it's just JSON, can't you do this:

head -10 myfile.json

Ideally you'd want to configure the browser to open JSON files & co with your default editor, since that makes for a very pleasant workflow.
I don't know now what goes into these apps or why newer apps can't handle it but I still keep TextWrangler around for huge files. It's not really a "modern" editor I guess but it screams.
head ?