HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
bgreenwell
lstr
Rust2025–2025
bgreenwell / lstr

lstr

A fast, minimalist directory tree viewer, written in Rust.

3Distinct people
3Mentions
0Explicit recommenders
1.6KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A fast, minimalist directory tree viewer, written in Rust.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour3 dated mentions

Observed mentions: 2025-06-18 02:07:19 UTC to 2025-06-18 14:57:41 UTC.

0122025-06-18 02:00:00 UTC to 2025-06-18 03:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 commentsJun 18, 02:002025-06-18 03:00:00 UTC to 2025-06-18 04:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-06-18 04:00:00 UTC to 2025-06-18 05:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-06-18 05:00:00 UTC to 2025-06-18 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-06-18 06:00:00 UTC to 2025-06-18 07:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-06-18 07:00:00 UTC to 2025-06-18 08:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-06-18 08:00:00 UTC to 2025-06-18 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJun 18, 08:002025-06-18 09:00:00 UTC to 2025-06-18 10:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-06-18 10:00:00 UTC to 2025-06-18 11:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-06-18 11:00:00 UTC to 2025-06-18 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-06-18 12:00:00 UTC to 2025-06-18 13:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-06-18 13:00:00 UTC to 2025-06-18 14:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-06-18 14:00:00 UTC to 2025-06-18 15:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJun 18, 14:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jun 18, 02:002025-06-18 02:00:00 UTC2025-06-18 03:00:00 UTC211
Jun 18, 03:002025-06-18 03:00:00 UTC2025-06-18 04:00:00 UTC000
Jun 18, 04:002025-06-18 04:00:00 UTC2025-06-18 05:00:00 UTC000
Jun 18, 05:002025-06-18 05:00:00 UTC2025-06-18 06:00:00 UTC000
Jun 18, 06:002025-06-18 06:00:00 UTC2025-06-18 07:00:00 UTC000
Jun 18, 07:002025-06-18 07:00:00 UTC2025-06-18 08:00:00 UTC000
Jun 18, 08:002025-06-18 08:00:00 UTC2025-06-18 09:00:00 UTC000
Jun 18, 09:002025-06-18 09:00:00 UTC2025-06-18 10:00:00 UTC000
Jun 18, 10:002025-06-18 10:00:00 UTC2025-06-18 11:00:00 UTC000
Jun 18, 11:002025-06-18 11:00:00 UTC2025-06-18 12:00:00 UTC000
Jun 18, 12:002025-06-18 12:00:00 UTC2025-06-18 13:00:00 UTC000
Jun 18, 13:002025-06-18 13:00:00 UTC2025-06-18 14:00:00 UTC000
Jun 18, 14:002025-06-18 14:00:00 UTC2025-06-18 15:00:00 UTC101

What Hacker News says

3 sources
> The binary is also 53M That's a debug binary, and the vast majority of that is debug symbols. A release build of this project is 4.3M, an order of magnitude smaller. Also, compiling out the default features of the git2 crate eliminates several dependencies and reduces it further to 3.6M. https://github.com/bgreenwell/lstr/pull/5 https://github.com/rust-lang/git2-rs/pull/1168 Stripping the binary further improves it to 2.9M, and some further optimizations get it to 2.2M without any compromise to performance. (You can get it smaller by optimizing for size, but I wouldn't recommend that unless you really do value size more than performance.)
In Show HN: Lstr – A modern, interactive tree command written in Rust
w108bmg·Jun 18, 2025Submission

Show HN: 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 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 stat
Read the rest
us 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!
227 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.