nowfound

Dev tools · June 18, 2025

LA

Lstr – A modern, interactive tree command written in Rust

Hi HN, (First time poster!) I'm the author of `lstr`. I've always loved the classic Linux `tree` command for its simplicity, but I often found myself wanting more modern features like interactivity and Git integration. So, I decided to build my own version in Rust with a philosophy of being fast, minimalist, and interactive. It was also an excuse to help learn more about Rust\! Here's a quick look at the interactive mode: https://raw.githubusercontent.com/bgreenwell/lstr/main/asset... I've just released v0.2.0 with some features I think this community might find…

In plain words

Lstr is a modern command-line tool written in Rust that displays directory structures like the classic tree command, but with interactive features. It offers keyboard-driven navigation for expanding and collapsing folders, Git status integration to show file states, and the ability to open files in a default editor. Designed for developers who want a faster, more feature-rich alternative to traditional tree command utilities.

written from the facts on this page · September 2026

From the sources

In the maker’s words, at launch

Hi HN, (First time poster!) I'm the author of `lstr`. I've always loved the classic Linux `tree` command for its simplicity, but I often found myself wanting more modern features like interactivity and Git integration. So, I decided to build my own version in Rust with a philosophy of being fast, minimalist, and interactive. It was also an excuse to help learn more about Rust\! Here's a quick look at the interactive mode: https://raw.githubusercontent.com/bgreenwell/lstr/main/asset... I've just released v0.2.0 with some features I think this community might find useful: * **Interactive TUI Mode:** You can launch it with `lstr interactive`. It allows for keyboard-driven navigation, expanding/collapsing directories, and opening files in your default editor. * **Git Status Integration:** Using the `-G` flag, `lstr` will show the Git status of every file and directory right in the tree output. * **Shell Integration:** This is my favorite feature. In interactive mode, you can press `Ctrl+s` to quit and have `lstr` print the selected path to stdout. This lets you pipe it into other commands or use it as a visual `cd`. For example, you can add this function to your `.bashrc`/`.zshrc`: ```bash lcd() { local selected_path selected_path="$(lstr interactive -gG)" if [[ -n "$selected_path" && -d "$selected_path" ]]; then cd "$selected_path" fi } ``` Then just run `lcd` to visually pick a directory and jump to it. It also supports file-type icons (via Nerd Fonts), file sizes, permissions, and respects your `.gitignore`. The project is open-source and I would love to get your feedback. GitHub: https://github.com/bgreenwell/lstr Crates.io: https://crates.io/crates/lstr Thanks for checking it out!

More dev tools this month

the category →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • Open-source GTM skills for technical founders

    Dev tools · 29d ago · gtmcofounder.com

  • OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.

    Dev tools · 2d ago · opentrailpaper.com

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

Launched alongside, June 2025

the whole month →
  • IM

    Hey HN! Pilots everywhere are required to keep a logbook of all their flying hours, aircraft, airports, and so on. Since I track everything digitally (some people still just use paper logbooks!), I put together some data visualizations and a few 3D globes to show my flying history. This globe is probably my favourite so far: https://jameshard.ing/pilot/globes/all If you’ve got ideas for other graphs or ways to show this kind of data, I’d love to hear them!

    Life & fun · 2025 · jameshard.ing

  • Stunning presentations with AI. No design skills required.

    AI · 2025 · chroniclehq.com

  • Build native mobile apps for iOS and Android without code.

    Dev tools · 2025 · bble.io

  • Twenty991

    The #1 open-source CRM

    Dev tools · 2025 · twenty.com

  • All your connections, across all your socials.

    AI · 2025 · pally.com

  • WC

    I was the main contributor to workout.lol, an open-source fitness app to easily build a workout routine. The project had traction (1.4k GitHub stars, 95 forks, ~20K visits/month), but was eventually sold due to video licensing hurdles. The new owner stopped maintaining it, and the repo went abandoned. Over the next 9 months, I sent 15 emails to try to save it : no replies. Feature requests & issues were ignored. The community was left with a "broken" tool let's say. I couldn't just let it die So I built the new version from scratch with the same open-source spirit, but a better…

    Dev tools · 2025 · github.com