Guides
Getting started tutorial
A 15-minute walkthrough on your own project: views, Git, filters, search, a config default, a plugin and a bookmark.
↓ on this page
This walkthrough takes about 15 minutes. Run it in a project of your own, ideally a Git repository, and type each command as you go. Your project files stay untouched.
You need lla installed. lla --version should print lla 0.8.0 or later. If it doesn't, start with Installation.
First listing
Run lla with no arguments to list the current directory.
cd ~/project
lla.envrc
.git/
CHANGELOG.md
README.md
docs/Directories end in /, and dotfiles are included by default. To list somewhere else, pass a directory, one file, or a .zip, .tar, .tar.gz or .tgz archive, as in lla docs.
The first run also creates ~/.config/lla/config.toml. You'll change a setting in it later.
Long view
Use -l when you care about size, date or permissions.
lla -l-rw-r--r-- 10B Dec 09 05:37 you staff .envrc
drwxr-xr-x 416B Nov 04 22:52 you staff .git/
-rw-r--r-- 43.8K Oct 07 15:26 you staff CHANGELOG.mdAdd -s to sort. Size sorts largest first and date sorts oldest first, and -r reverses either one. The second command here puts your most recent changes at the top.
lla -l -s size
lla -l -s date -rTree
Use -t to see how a project is laid out. -d limits the depth, and the default is 3.
lla -t -d 2 docs└── docs/
├── README.md
├── maintainers/
│ └── releasing.md
├── plugins/
│ └── migration-v3.md
└── views.mdTree view shows dotfiles too, and lists .git without going into it. Add --no-dotfiles to hide them.
Git
Use -G to see what changed and who last touched each file.
lla -G⎇ main ↥origin/main @2daeae36
stage 1 worktree 2 untracked 5
────────────────────────────────────────────────────────────────────────────────────────────────
Status Name Commit Subject Time
────────────────────────────────────────────────────────────────────────────────────────────────
[new] bookmarks.rs - (uncommitted) pending
[clean] commands/ @b32fdb4 fix: embed MIT license in the CLI 4 weeks ago
[S:mod] installer.rs @32c6cc4 fix(ci): resolve Windows validation failures 3 months ago
[W:mod] main.rs @ad7260c feat(plugins): add batching and persistent ca... 3 months ago[new] is untracked, [S:mod] is modified and staged, and [W:mod] is modified in the work tree.
The counts in the header cover the whole repository. A directory row shows [clean] even when a file inside it changed, so cd into the directory to see that file's status.
Filtering and search
Use -f to narrow a listing by name. A pattern starting with . matches an extension, and any other pattern matches part of the name. Use OR for alternatives.
lla -f ".toml OR .md"CHANGELOG.md
Cargo.toml
README.md
rust-toolchain.tomlWrite patterns in lowercase. Filtering lowercases file names before comparing, so lla -f readme finds README.md and lla -f README finds nothing. Add -c to match exact case.
You can also filter by size, as in lla --size ">10K" --files-only, or by age. For --modified, ">7d" means changed within the last 7 days.
Use --search to look inside files. It needs ripgrep on your PATH, and it matches literal text regardless of case. --no-dotfiles keeps .git/ out of the results.
lla --search "TODO" --no-dotfiles --search-context 0File: README.md [./README.md]
70 │ lla --search "TODO" # search file contents
70 │ ^^^^Run search from the directory you want to search, because a relative directory argument returns nothing in 0.8.0. See Search file contents for regex patterns.
A config default
Set a default when you keep typing the same flag. The first command here lists directories first from now on, and the second shows what you've changed from the built-in defaults.
lla config --set sort.dirs_first true
lla config diff --defaultEffective overrides compared to built-in defaults:
sort.dirs_first
default : false
current : true
source : global configFor a setting that applies to one project, add a .lla.toml file to it with a line such as default_format = "tree". lla uses the nearest one, looking up from the current directory. See Configuration for every key.
A first plugin
Plugins add fields to listings, new actions, or both. This command downloads the prebuilt bundle for your platform and asks which plugins to install, with all of them selected. Press Enter to accept.
lla installInstalled plugins stay off until you turn them on. Open the plugin manager, move to file_hash, press Space to toggle it, and press Enter to save.
lla useYour listings now include short hashes for each file. Here's lla -f .toml:
Cargo.toml
┌─
│ SHA1 b18c9b51
│ SHA256 8a3cd5a8
└─The plugin stays on until you turn it off with lla --disable-plugin file_hash. The first-party plugin catalog lists the rest.
A jump bookmark
Bookmark a directory you return to often.
lla jump --add .
lla jump --list★ ~/project
~/project/docsA star marks a bookmark. The other rows are history, which lla records each time you list a directory.
A program can't change your shell's working directory, so lla jump only prints the path you pick. Run lla jump --setup to add a j function that does the cd. It goes in ~/.bashrc, ~/.zshrc or ~/.config/fish/config.fish.
Open a new terminal, run j, and pick a directory with the arrow keys and Enter.
You've now used each part of lla once. These pages cover each one in full.