antonmedv / fx

Terminal JSON viewer & processor
https://fx.wtf
MIT License
19.02k stars 441 forks source link

add a shortcut to count the number of entries/keys in list/dict #324

Open teto opened 2 hours ago

teto commented 2 hours ago

just a feature I could have used a few minutes ago. I regenerated a json and noticed it was much smaller than before. Went from 1000 to 10 elements and I opened it with fx just to check if I could count the number of items in a list. Since there are so few shortcuts for now, I thought it could be a fun nice addition. Otherwise feel free to close and thans for the beautiful software.

antonmedv commented 2 hours ago

Nice idea! Also I'm thinking of adding ability to run commands in fx directly. Like len or .length.