Editor Integration
Quick Edit
Press Ctrl+E to open the current file in your configured editor. When you save and close the editor, leaf automatically reloads the preview.
Editor Picker
Press Shift+E to switch editors on-the-fly. leaf detects installed editors and classifies them as terminal-based (vim, nano) or GUI-based (VS Code, Sublime).
Configuration
Set your default editor in ~/.config/leaf/config.toml:
editor = "vim"
leaf also respects the $EDITOR and $VISUAL environment variables.
Supported Editors
vim, nvim, nano, emacs, helix, micro, VS Code, Sublime Text, Zed, and more.