4 ms·
I would prefer one that aligned the like named keys, if it fits in screen. Makes it dead easy to scan the values. That said, it is just another pun on the tex
by taeric 6y ago
I would prefer one that aligned the like named keys, if it fits in screen. Makes it dead easy to scan the values.
That said, it is just another pun on the text as art thing. In that it doesn't really scale, and you are going to upset someone by not having a codified tool for automatically doing this. (I don't recall seeing align-regex in any popular tool.)
- peterohler 6y agoCan you explain what you mean by "like named"? The sorting helps a lot but I'm always interested in additional features.
- taeric 6y agoThe current top comment is what I meant. On my phone, so couldn't put an example easily.
- dan-robertson 6y agoI assume they mean vertical alignment like: [ { foo: a bar: 123.45 } { foo: abc bar: 6.7 } ]
- peterohler 6y agoAnother post said something similar. An issue was added to add the feature. I think it is a good one to add.
- thechao 6y agoAs a joke I developed a format called "KVIN" which is like GRON but "context-sensitive": foo.bar.baz = 10 .biz = 12 // foo.bar.biz ..boz.baz = 31 // foo.boz.baz etc. It basically combines really brittle context-sensitive grammar production with complete lack of greppability.