файловый менеджер
| cmd/vcom | ||
| docs | ||
| internal | ||
| .codex | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
| vcom.toml | ||
vcom
vcom is a terminal file manager inspired by Midnight Commander and built on top of Charm's TUI stack.
The layout is:
- left browser pane
- right browser pane
The key difference from classic mc is the inspect mode on i. It temporarily replaces the inactive pane with a preview/info panel for the active side selection:
- directory: child entries
- text file: text preview
- image: metadata and dimensions
- binary or unsupported file: safe fallback preview
Goals
- MC-like browsing and function-key workflow
- configurable column layout
- pleasant default styling
- readable, editable config with commented-out optional features
- clean architecture for async file operations and previews
Current feature set
- MC-like two-pane layout by default
- preview/info mode on
i - left/right file browsers
- preview with top metadata widget
- themes with
catppuccin-mochaas default - runtime theme cycling with
t - configurable visible columns
- hidden files shown by default
- hidden files toggle with
. - browser sort cycling with
s - directory size calculation on
Space - overwrite confirmation before copy or move
- pager on
F3and editor onF4when available - basic
F5copy,F6move,F7mkdir,F8delete,F10quit
Controls
Tab: switch active browser paneEnter: open directoryBackspaceorLeft: go to parent directoryi: replace inactive pane with info/preview for the active pane selectionSpace: calculate selected directory size.: toggle hidden entriess: cycle sort modet: cycle themeF3: open selected file in$PAGERif available, otherwise stay in center previewF4: open selected file in$EDITORF5: copy to passive pane pathF6: move to passive pane pathF7: create directory in active paneF8: delete selected entryF10: quit
Run
go run ./cmd/vcom
Optional config file lookup order:
-config /path/to/vcom.toml./vcom.toml./config/vcom.toml$XDG_CONFIG_HOME/vcom/vcom.toml~/.config/vcom/vcom.toml
Themes
Built-in presets:
catppuccin-mochatokyo-nightgruvbox-darknord-frost
The sample config in vcom.toml is intentionally written so optional columns and sort variants can be uncommented by hand.
Notes
- File creation time depends on filesystem and OS support. When unavailable the UI shows
n/a. - Real inline image rendering is intentionally not enabled yet because terminal support is fragmented. The current architecture keeps that as an isolated preview backend to add later.
More detail is in docs/architecture.md.