Launches the interactive TUI.
snapfigCopies watched paths to the vault. Only changed files are copied (smart copy).
snapfig copyPushes the vault to the configured remote.
snapfig pushPulls from remote. Clones the repository if the vault doesn't exist.
snapfig pullRestores all files from vault to their original locations.
snapfig restoreManages the background runner.
snapfig daemon start # Start the daemon
snapfig daemon stop # Stop the daemon
snapfig daemon status # Show status and configurationSee Background Runner for configuration details.
Fire-and-forget setup for automation.
snapfig setup \
--paths=".config/nvim:g,.zshrc:x" \
--remote="git@github.com:user/dotfiles.git"| Flag | Description | Default |
|---|---|---|
--paths |
Paths to watch (required). Format: path:mode |
- |
--remote |
Git remote URL | - |
--vault-path |
Custom vault location | ~/.snapfig/vault |
--copy-interval |
Copy interval | 1h |
--push-interval |
Push interval | 24h |
--pull-interval |
Pull interval | disabled |
--auto-restore |
Auto restore after pull | false |
--no-daemon |
Don't start daemon | false |
--force |
Overwrite existing config | false |
Paths use path:mode format:
path:x- Remove.gitdirectories (default)path:g- Preserve.gitas.git_disabled
Example: .config/nvim:g,.zshrc:x,.bashrc
| Key | Action |
|---|---|
Space |
Cycle selection: [ ] → [x] → [g] → [ ] |
↑/↓ or j/k |
Navigate |
Enter |
Expand/collapse directory |
F2 |
Copy to vault |
F3 |
Push to remote |
F4 |
Pull from remote |
F5 |
Restore from vault |
F6 |
Selective restore |
F7 |
Backup (copy + push) |
F8 |
Sync (pull + restore) |
F9 |
Settings |
F10 |
Quit |
[ ]- Not selected[x]- Selected, remove.gitdirectories in backup[g]- Selected, preserve.gitas.git_disabled(keeps history)
Next: Background Runner
All docs: Index · Getting Started · Background Runner · Workflows · Architecture