Fresh: The Terminal Editor that Opens 2GB Logs in ~600ms with <40MB RAM
Source: Dev.to
If you’ve ever cracked open a multi‑gigabyte log only to watch your editor choke, this’ll feel like cheating. Fresh is a new terminal‑based editor written in Rust that behaves like a modern GUI editor — command palette, mouse support, LSP, multi‑cursor — yet stays tiny and fast enough to open a 2 GB ANSI‑colored log in about 600 ms while sipping ~36 MB RAM (author’s benchmark). It’s open‑source and solo‑built.
Why Fresh exists (and why it’s interesting)
- Discoverable UX – menus, a Command Palette (Ctrl + P), familiar keybindings, mouse & scrollbars.
- Familiarity – if you can use VS Code, you can use Fresh.
- Performance – ~600 ms load, ~36 MB RAM, ANSI colors shown.
Quickstart
Homebrew (macOS)
brew tap sinelaw/freshDebian/Ubuntu
sudo dpkg -i fresh-editor_*.debRPM (Fedora, CentOS, etc.)
sudo rpm -i fresh-editor-*.rpmArch Linux (AUR)
yay -S fresh-editorRust users (crates.io)
cargo install fresh-editorNode (no installation)
npx @fresh-editor/fresh-editorReleases & detailed instructions are on the project’s README.
60‑second tour
(A short video or GIF walkthrough showing a 2 GB file opening, the Command Palette, multi‑cursor, and LSP integration.)
Ideas to build next
- “Triage Log” plugin – colorize severity, jump between error frames, extract request IDs.
Example: generate a 2 GB colored log file
# generate_huge_log.py
import os
line = "\x1b[32mINFO\x1b[0m something happened id=1234\n"
target = 2 * 1024 * 1024 * 1024 # 2 GB
written = 0
with open("huge.log", "w") as f:
while written < target:
f.write(line)
written += len(line)Quick adoption playbook (for you, the author)
- Produce a one‑minute demo video + GIFs showing (1) 2 GB open, (2) Command Palette, (3) multi‑cursor, (4) LSP. Link from the README & website.
- Offer keymap packs (VS Code / Sublime / Emacs‑like) to make switching painless. The README already lists keymap support—double down on it.
Acknowledgments
Thanks to Noam Lewis, the maintainer of the Fresh Git repository, for his valuable work.
Links
- Project homepage: https://github.com/sinelaw/fresh-editor
- Rust Production Cheatsheet: https://cheats.rs/