_ _
| |___ _ __ ___ | |_ ___
| / __| '_ \ / _ \| __/ _ \
| \__ \ | | | (_) | || __/
|_|___/_| |_|\___/ \__\___|
lswith notes — because sometimes files need context
A modern ls replacement with file notes, emoji icons, git integration, and colored column headers. No nerd fonts required.
Why lsnote?
# Regular ls
# lsnote - detailed view with colored headers by default
What you get:
- Detailed view by default — Permissions, size, dates, and colored headers
- Human-readable sizes —
26.8Kinstead of27464 - Notes — Add context to any file (
# Rust manifestabove) - Icons — Instant visual recognition by file type
- Git status — See what's modified (●), staged (◐), or untracked (?) at a glance
- Tree view — Explore nested directories beautifully
- Copy to clipboard — Share project structure with
-cflag (works on Wayland & X11)
Installation
Cargo (recommended)
Homebrew
From source
Pre-built binaries
Download from GitHub Releases for:
- macOS (Intel & Apple Silicon)
- Linux (x64 & ARM64)
Quick Start
# Basic listing
# Add a note to remember what a file is for
# View your project as a tree
Features
File Notes
Attach persistent notes to any file or directory:
Notes appear inline when listing:
📄 secrets.env # API keys for staging
● 📁 src/legacy/ # Deprecated - migrate to v2 by Q2
Manage notes:
Git Integration
Git status is shown automatically — no extra commands needed:
◐ 🦀 lib.rs # Staged
● 🦀 main.rs # Modified
? 📄 temp.txt # Untracked
📁 vendor/ # Clean
| Symbol | Meaning | Color |
|---|---|---|
| ● | Modified | Red |
| ◐ | Staged | Green |
| ? | Untracked | Yellow |
Directories show the highest-priority status of their contents.
Emoji Icons
Recognize file types instantly — works in any terminal:
| Type | Icon | Examples |
|---|---|---|
| Rust | 🦀 | .rs, Cargo.toml |
| Python | 🐍 | .py |
| JavaScript | 🟨 | .js, .jsx |
| TypeScript | 🔷 | .ts, .tsx |
| Go | 🐹 | .go |
| Docker | 🐳 | Dockerfile |
| Config | ⚙️ | .toml, .yaml, .json |
| Docs | 📝 | .md |
| Images | 🖼️ | .png, .jpg, .svg |
| And many more... |
Tree View
Visualize your project structure:
Long Format (Default)
The detailed view with permissions, size, dates, and colored headers is shown by default:
Use -S for a compact short listing:
Use -B to show raw byte sizes instead of human-readable:
Copy to Clipboard
Copy any view to clipboard — perfect for documentation, chat, or AI prompts:
# Copy current listing
# Copy tree view
# Copy short format
Works on Linux (Wayland & X11), macOS, and Windows. No external clipboard tools required.
Combine -c with any other flags (-t, -S, -a, -B, etc.).
Usage
)
)
Defaults: Long format with human-readable sizes and colored headers are enabled by default.
Configuration
Generate a config file:
Edit ~/.lsnote/config:
# Custom icons
icon.directory = 📁
icon.ext.rs = 🦀
icon.ext.py = 🐍
icon.name.Dockerfile = 🐳
# Colors
color.directory = blue
color.git_modified = red
color.git_staged = green
color.git_untracked = yellow
# Git symbols
git.modified = ●
git.staged = ◐
git.untracked = ?
Tips
Replace ls with lsnote
Add an alias to your shell config:
Bash (~/.bashrc):
# Already long format by default
# Show hidden files
# Tree view
# Short format
Zsh (~/.zshrc):
Fish (~/.config/fish/config.fish):
alias ls 'lsnote'
alias ll 'lsnote'
alias la 'lsnote -a'
alias lt 'lsnote -t'
alias lss 'lsnote -S'
Then reload your shell:
Data Storage
- Notes:
~/.lsnote/notes - Config:
~/.lsnote/config
License
MIT
Made with ❤️ by @jofftiquez