lstr

lstr 0.4.0

A fast, minimalist directory tree viewer, written in Rust

Download for Windows

About lstr

A fast, minimalist directory tree viewer, written in Rust

What's new in 0.4.0

Release Notes
Added
• Added comprehensive sorting options for both classic and interactive modes:
• --sort <TYPE>:Sort by name (default), size, modified time, or extension
• --dirs-first:Sort directories before files
• --case-sensitive:Use case-sensitive sorting with specific order (numbers → uppercase → lowercase)
• --natural-sort:Version-aware sorting (file1 < file2 < file10)
• --reverse:Reverse any sort order
• --dotfiles-first:Priority ordering (dotfolders → folders → dotfiles → files)
• Added comprehensive examples directory (examples/sample-directory/) with various file types, nested structures, and test scenarios for validating lstr functionality including icons, gitignore behavior, and tree display.
• Added interactive search functionality in TUI mode:
• Press / to enter search mode with real-time filename filtering
• Case-insensitive substring matching filters files as you type
• Press Esc to exit search and restore full file list
• Status line shows current search query and match count
• Preserves tree structure and selection state during filtering (Closes #30)
Added
• Releases are now built with cargo-dist:shell/PowerShell installers, a Windows MSI, six prebuilt targets (x86_64/aarch64 for Linux, macOS, Windows), and automated publishing to Homebrew, Scoop, AUR (lstr-bin), and WinGet
• Added --du to show directories with the cumulative size of their contents (like tree --du, implies -s); the summary line and JSON report include the total (Closes #12)
• Added --output json for machine-readable classic-mode output, including sizes, permissions, and git status when the matching flags are set (progress toward #7)
• Added mouse support in interactive mode:scroll wheel moves the selection, click selects, and clicking the selected entry opens/toggles it (Closes #28)
• Added --file-depth <LEVEL> to hide individual files below a depth, summarized per directory as [+N files] — useful for high-level project overviews (Closes #9)
• Added --max-items <N> to cap entries shown per directory, summarizing the rest as [+N more] (Closes #8)
• Interactive mode now returns to the tree after closing the editor instead of exiting, preserving expansion and selection and picking up file changes (Closes #3, Closes #22)
• Added --editor <COMMAND> to interactive mode for custom file openers, and $VISUAL is now honored before $EDITOR (Closes #26) …

Full release notes »

Technical details

PublisherBrandon Greenwell
Version0.4.0
Release date2026-07-14
LicenseMIT
Installer typewix
Architecturex64
Package IDbgreenwell.lstr
Install scopeAll users

Install lstr from the command line

Install with Windows Package Manager
winget install --id=bgreenwell.lstr -e
Update to the latest version
winget upgrade --id=bgreenwell.lstr -e
Uninstall
winget uninstall --id=bgreenwell.lstr -e
Silent install with the offline installer
msiexec /i "lstr-x86_64-pc-windows-msvc.msi" /quiet /norestart
Uninstall the MSI package
msiexec /x {93EEB8CD-E6B6-41C9-A81D-34AAEF5F3916} /quiet

clicommand-linecommand-line-tooldeveloper-toolsfilesystemgitlsnerd-fontsrust-langtreetui

lstr version history

0.3.0 Jul 12, 2026

Release Notes
Added
- Added comprehensive sorting options for both classic and interactive modes:
- --sort <TYPE>: Sort by name (default), size, modified time, or extension
- --dirs-first: Sort directories before files
- --case-sensitive: Use case-sensitive sorting with specific order (numbers → uppercase → lowercase)
- --natural-sort: Version-aware sorting (file1 < file2 < file10)
- --reverse: Reverse any sort order
- --dotfiles-first: Priority ordering (dotfolders → folders → dotfiles → files)
- Added comprehensive examples directory (examples/sample-directory/) with various file types, nested structures, and test scenarios for validating lstr functionality including icons, gitignore behavior, and tree display.
- Added interactive search functionality in TUI mode:
- Press / to enter search mode with real-time filename filtering
- Case-insensitive substring matching filters files as you type
- Press Esc to exit search and restore full file list
- Status line shows current search query and match count
- Preserves tree structure and selection state during filtering (Closes #30)
Added
- Releases are now built with cargo-dist: shell/PowerShell installers, a Windows MSI, six prebuilt targets (x86_64/aarch64 for Linux, macOS, Windows), and automated publishing to Homebrew, Scoop, AUR (lstr-bin), and WinGet …

Frequently asked questions

Is lstr free?

Yes. lstr is free and open-source software released under the MIT license.

What is the latest version of lstr?

The latest version is 0.4.0, released on Jul 14, 2026.

Is it safe to download lstr?

The download button links to the official installer published on github.com, the same file Windows Package Manager installs. You can verify the downloaded file by comparing its SHA-256 checksum with 4f0d52c72e4bae8194108f55df0a6e2e4d3302d61fc80f0ec6d2a78bfd139f38.

Which Windows versions does lstr support?

lstr runs on Windows and is available for 64-bit (x64) systems.

How do I install lstr silently?

Run the offline installer with msiexec /i "lstr-x86_64-pc-windows-msvc.msi" /quiet /norestart, or install it with Windows Package Manager: winget install --id=bgreenwell.lstr -e --silent.

How do I uninstall lstr?

Open Settings › Apps › Installed apps, find lstr and select Uninstall. From the command line, run winget uninstall --id=bgreenwell.lstr -e.