seaQueue@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago50 million rendered polygons vs one spicy 4.2MB boilemmy.worldimagemessage-square134linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1image50 million rendered polygons vs one spicy 4.2MB boilemmy.worldseaQueue@lemmy.world to Programmer Humor@lemmy.ml · 2 years agomessage-square134linkfedilink
minus-squarebjornsno@lemm.eelinkfedilinkarrow-up0·2 years agoExcept if it’s a single line file, only god can help you then. (Or running prettier -w on it before opening it or whatever.)
minus-squareexpr@programming.devlinkfedilinkarrow-up0·2 years agohttps://porkmail.org/era/unix/award#cat jq < file.json cat is for concatenating multiple files, not redirecting single files.
minus-squarejimbolauski@lemm.eelinkfedilinkarrow-up0·2 years agoRender Media works the best rm file.json
minus-squarexavier666@lemm.eelinkfedilinkEnglisharrow-up0·2 years agoYes, Render Media is the best. It’s hard to believe that not many people know about this tool. It’s also natively installed in all Linux distros.
minus-squarefl42v@lemmy.mllinkfedilinkarrow-up0·2 years ago4.2 megs on one line? Vim probably can handle it fine, although syntax won’t be highlighted past a certain point
minus-squareBaldProphet@kbin.sociallinkfedilinkarrow-up0·2 years agoTechnically every JSON file is a single line, with line break characters here and there
minus-squarebjornsno@lemm.eelinkfedilinkarrow-up0·2 years agoI’ve accidentally opened enormous single line json files more than once. Could be lsp config or treesitter or any number of things but trying to do any operations after opening such a file is not a good time.
Works fine in
vimExcept if it’s a single line file, only god can help you then. (Or running
prettier -won it before opening it or whatever.)cat file.json | jqalso workshttps://porkmail.org/era/unix/award#cat
jq < file.jsoncatis for concatenating multiple files, not redirecting single files.Render Media works the best
rm file.jsonYes, Render Media is the best. It’s hard to believe that not many people know about this tool. It’s also natively installed in all Linux distros.
:syntax offand it works just fine.4.2 megs on one line? Vim probably can handle it fine, although syntax won’t be highlighted past a certain point
Technically every JSON file is a single line, with line break characters here and there
I’ve accidentally opened enormous single line json files more than once. Could be lsp config or treesitter or any number of things but trying to do any operations after opening such a file is not a good time.