Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Lsvine: `tree -L 2` with less empty screen space (github.com/autofitcloud)
31 points by shadiakiki on Jan 10, 2020 | hide | past | favorite | 3 comments



It's a nice piece of work. I like it. Tree's output is probably easier for me to reason about when I'm handling it programmatically. There's a recursive structure.


Interesting stuff. How does it handle running out of screen width?


A running total of maximum filename lengths per directory (i.e. column in display) triggers a flush-to-screen of the directories in buffer every time it hits a multiple of the terminal width.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: