Sync and TUI
This page covers the common sync commands, the main TUI navigation, and the background sync behavior that runs while the TUI stays open.
Prerequisites
- Install CRIEW and verify the environment with
criew doctor. - Configure
[imap]only if you want real IMAPINBOXsync. - Configure a kernel tree if you want code browsing and local patch review context.
Workflow
Check the environment
criew doctor
Sync a lore mailbox
criew sync --mailbox io-uring
Sync a real IMAP inbox
criew sync --mailbox INBOX
Use local .eml fixtures
criew sync --mailbox test --fixture-dir ./fixtures
Start the TUI
criew tui
TUI actions
For the full key list, including modal editors, Send Preview, and the inline code editor, see Keybindings.
:opens the command palette.- The header shows the active keymap scheme:
default,vim, orcustom. - A numeric prefix repeats vertical movement:
count+i/kfordefaultandcustom,count+j/kforvim. yandnenable or disable the selected subscription.Enteropens the selected mailbox or thread and moves focus to threads or preview.[and]expand the focused mail pane left or right.{and}shrink the focused mail pane and persist the widths inui-state.toml.-and=switch to the previous or next mail while preview stays focused.Tabswitches between the mail page and the code browser.- With
ui.keymap = "vim",ggjumps to the first line in the active pane,Gjumps to the last line, andqqexits quickly.
Command palette
Common commands are:
syncsync <mailbox>configvimrestartquit!<shell command>
Background sync
When IMAP is configured,
My Inbox joins startup sync
and continues periodic background sync while the TUI remains open.
Enabled mailing-list subscriptions also continue periodic background sync while the TUI remains open, so Linux lore and QEMU archive mailboxes keep pulling new mail.
Verify the result
Success means:
- the requested mailbox sync completes without transport errors
- thread lists populate after sync
- the TUI can open mailboxes, threads, and preview panes without falling back to empty-state errors