DocsCodeviewReference

Reference

Every flag and environment variable of codeview serve, and the keyboard shortcuts.

Flags and environment

Every flag of codeview serve also reads an environment variable. The Docker image sets CODEVIEW_DIR=/repos and CODEVIEW_HOST=0.0.0.0.

FlagVariableDefaultDescription
--dirCODEVIEW_DIR.Folder holding the git repositories
--modeCODEVIEW_MODEpublicpublic (holding git-daemon-export-ok) or all
--hostCODEVIEW_HOST127.0.0.1Address to listen on
--portCODEVIEW_PORT8080Port to listen on
--gitCODEVIEW_GITgitgit executable

Any other --mode value is rejected at startup.

Keyboard shortcuts

mod is ⌘ on macOS and Ctrl elsewhere. Press ? in the UI to see the list.

KeysActionWhere
mod+pGo to fileEverywhere
mod+kShow all actionsEverywhere
mod+bToggle the sidebarEverywhere
?Show keyboard shortcutsEverywhere
EscapeClear or closeEverywhere
alt+shift+lCopy link to this pageInside a repository