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.
| Flag | Variable | Default | Description |
|---|---|---|---|
--dir | CODEVIEW_DIR | . | Folder holding the git repositories |
--mode | CODEVIEW_MODE | public | public (holding git-daemon-export-ok) or all |
--host | CODEVIEW_HOST | 127.0.0.1 | Address to listen on |
--port | CODEVIEW_PORT | 8080 | Port to listen on |
--git | CODEVIEW_GIT | git | git 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.
| Keys | Action | Where |
|---|---|---|
mod+p | Go to file | Everywhere |
mod+k | Show all actions | Everywhere |
mod+b | Toggle the sidebar | Everywhere |
? | Show keyboard shortcuts | Everywhere |
Escape | Clear or close | Everywhere |
alt+shift+l | Copy link to this page | Inside a repository |