Skip to content

Chan manual

File browser & reports

Browse files, transfer them between machines, and inspect code reports and COCOMO estimates.

Browse the filesystem

Open File browser from the pane menu or command launcher, or run cs open .. Files tabs show the current directory with breadcrumbs, back/forward navigation, a path field, and a filename filter. Sort by Name, Kind, Size, or Modified; directories stay first. Double-click a directory to enter it or a file to open it. Use Details to inspect the selection; selecting another row keeps a closed inspector closed. Docked browsers retain an expandable tree. In a workspace, the browser follows the project; standalone windows browse the host filesystem.

The separate Drafts group holds unfinished documents. See Drafts for how to keep, save, or discard them.

Keyboard navigation

Tab to the file list or tree. Use arrow keys, Home, End, Page Up, and Page Down to move; Enter opens the focused entry. Left goes to the parent directory in a list, or collapses a tree branch. Right enters a directory or expands a tree branch. Alt+Left and Alt+Right step through a Files tab's history; Alt+Up goes to its parent.

Shift extends a selection. F8 enables independent marks: move with the arrows and press Space to toggle each item. Escape leaves that mode; another Escape clears the selection. Mod+A selects all visible entries. Mod means Command on macOS and Control elsewhere.

Mod+C, Mod+X, and Mod+V copy, cut, and paste files. F2 renames, Delete asks to delete, Shift+F10 opens the selected entry's action menu, and Mod+Y toggles Details. Use arrows, Home, and End within a menu; Escape returns focus to its opener. Press / or Mod+F to focus the folder filter. Standard navigation also supports typing a filename prefix.

Enable Vim keyboard navigation in the browser menu or Settings. It adds h/j/k/l, gg/G, y/x/p, and v for selection mode. It applies only while the file list or tree has focus, and the choice is saved in this browser. The Standard keys or Vim keys button shows the shortcut reference.

Upload and download

The Details inspector offers Upload file here for a directory and Download file or Download tarball for the selection. You can also drop files from your machine onto the file browser to upload them. Transfers show progress in the window.

The terminal commands use the same transfer UI:

$cs upload .
$cs download README.md
$cs download src

Upload opens a picker on the viewing machine and writes into the target directory on the terminal's host. Download sends a file, or a tarball for a directory, back to the viewing machine. A devserver path therefore stays remote until downloaded.

Code reports and analysis

Chan's chan-reports code analysis appears in Details. A source file shows its detected language and counts of code, comments, blank lines, and complexity. A directory shows a rollup for its subtree, with a per-language breakdown. The workspace's total is also available in the Dashboard.

Choose a language in the report to open its graph view. These reports help locate the size and distribution of code across a repository. Counts follow the workspace's included files and update as files change. Manage them in Settings → This workspace → chan-reports. Turning the feature off removes generated report data; enabling it again rebuilds the reports.

Under the hood: crates/chan-report/design.md describes the counting rules and the COCOMO model.

COCOMO estimates

Directory and workspace reports include Basic COCOMO estimates derived from source-line counts: effort in person-months, schedule in months, and team size. They are model estimates for the code being counted, not a record of time spent or a forecast of your team's delivery. The complexity score counts branching keywords and operators. It is a heuristic, not cyclomatic complexity or a judgment of code quality.