Files
hermes-agent/hermes_cli
Sam Foreman 750b2fc5e2 feat(cli): wire vi editing mode into the prompt_toolkit Application
Implements vim mode for the classic CLI input composer:

- Pass editing_mode=EditingMode.VI to Application when display.vim_mode
  is set, else EditingMode.EMACS (prompt_toolkit's own default), so the
  change is inert for users who have not opted in
- Add _handle_vim_command() to toggle at runtime and persist the choice
  to display.vim_mode; the live Application is updated in place so the
  toggle takes effect without a restart
- Add _vim_mode_label() and surface NORMAL/INSERT/REPLACE in the status
  bar while vim mode is active, as requested in the issue

Credit to #4325 by @SHL0MS, which first identified the EditingMode
wiring and the /vim toggle; that PR has gone stale against main. This
revives the approach, adds the missing config default and the status
indicator, and covers it with tests.

Closes #4254.
2026-09-12 22:00:02 -07:00
..
2026-09-12 08:23:58 -07:00