NAME

EDITING — line editing and multi-line input

SYNOPSIS

Type at the “harvey >” prompt. Use key bindings below to navigate and edit. For multi-line input, press Ctrl+X Ctrl+E to open an external editor.

LINE EDITING

Harvey’s prompt supports readline-style single-line editing.

Navigation:

Left / Right arrows move cursor one character Home / Ctrl+A jump to beginning of line End / Ctrl+E jump to end of line Up / Down arrows cycle through prompt history

Editing:

Backspace delete character before cursor Ctrl+D delete character under cursor; exits on empty line Ctrl+K delete from cursor to end of line

Actions:

Enter submit the prompt to the model Ctrl+C cancel current input and return to prompt

MULTI-LINE INPUT WITH $EDITOR

Press Ctrl+X then Ctrl+E to open the current line in your preferred editor. Harvey reads the environment variables in this order to find the editor:

  1. $EDITOR
  2. $VISUAL
  3. vi (hard fallback)

Write or paste your multi-line text in the editor, then save and quit. Harvey reads the file on exit and submits the full contents as your prompt. This is the recommended approach for long prompts, pasted code, or anything with embedded newlines.

TIPS