Skip to content

Features

Browse and edit

Two-panel layout: file list on the left, variables on the right. Navigate with arrow keys or vim bindings (hjkl). Edit values inline, add new variables, delete existing ones.

Compare and sync

Side-by-side diff between any two .env files. Copy values in either direction, edit inline, and save — all without leaving the TUI.

Jump between differences

Use n / N to jump to the next or previous difference without scrolling manually.

Completeness matrix

Multi-file grid view showing which variables exist in which files. Spot missing entries at a glance and add them inline.

Use case

You have .env, .env.staging, and .env.production. The matrix instantly shows you which variables are missing from which environment.

Change tracking

Distinct indicators show the state of each variable:

Marker Meaning
+ Added
* Modified
- Deleted
D Duplicate key
Empty value
Placeholder value

Indicators are color-coded and fully configurable.

Peek original values

Toggle inline display of the original value before your edits, so you always know what changed.

Clipboard support

Yank values or full KEY=value lines to the clipboard using OSC 52.

Works over SSH

OSC 52 clipboard works through SSH sessions and tmux — no local clipboard tool needed.

Secret masking

Sensitive keys (passwords, tokens, secrets) are automatically detected and masked. Toggle visibility with Ctrl+S.

Detection uses key name patterns (e.g. *_PASSWORD, *_TOKEN, *_SECRET), known value prefixes (sk-, ghp_, Bearer), and entropy-based heuristic for random-looking values.

Customize detection with the [secrets] config section — mark keys as safe, add extra patterns, or disable the value heuristic entirely.

Detection is heuristic

Always review your files before sharing. Use safe_patterns and extra_patterns to fine-tune detection for your project.

Gitignore check

Warns when .env files are not covered by .gitignore, so you don't accidentally commit secrets.

Automatic backup

Creates a .bak copy before the first save of each session. Disable with -B or no-backup = true in config.

Round-trip fidelity

Saves preserve comments, blank lines, quoting style, and key ordering — your files stay exactly as you wrote them.

Search and sort

Filter variables by name or value with /. Toggle between original position and alphabetical sorting with o.

Mouse support

Click to select files, variables, diff entries, and matrix cells. Scroll wheel navigates the panel under the mouse cursor. Disable with --no-mouse or no-mouse = true in config.

Theme preview

Browse all built-in themes interactively with lazyenv --themes. The two-panel view shows every theme's full color palette — swatch, name, and hex value — updating live as you navigate. Press Enter to get the config snippet for your chosen theme.