Skip to content

feat: set default vi mode prompt indicators#45

Merged
eitsupi merged 3 commits intomainfrom
feat/default-vi-prompt-indicators
Feb 4, 2026
Merged

feat: set default vi mode prompt indicators#45
eitsupi merged 3 commits intomainfrom
feat/default-vi-prompt-indicators

Conversation

@eitsupi
Copy link
Copy Markdown
Owner

@eitsupi eitsupi commented Feb 4, 2026

Summary

  • Set sensible defaults for vi mode prompt indicators instead of empty strings
    • Insert mode: [I] (LightGreen)
    • Normal mode: [N] (LightYellow)
    • Non-vi modes (Emacs): unchanged (no indicator)
  • Update documentation to reflect new defaults and add opt-out instructions
  • Add test for colored indicator rendering with ANSI escape codes

Closes #22 (vi mode indicator defaults)

Test plan

  • cargo test — all tests pass
  • cargo fmt --check — no formatting issues
  • cargo clippy --all-targets — no warnings
  • Manual: enable [editor] mode = "vi", verify [I] / [N] indicators appear
  • Manual: set symbol = { insert = "", normal = "" } to confirm opt-out works

🤖 Generated with Claude Code

eitsupi and others added 3 commits February 4, 2026 12:49
Set sensible defaults for vi mode prompt indicators instead of empty
strings. Insert mode shows [I] in LightGreen, normal mode shows [N]
in LightYellow. Non-vi modes (Emacs) remain unchanged with no indicator.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add test for default-constructed RPrompt that verifies ANSI color
  codes are present in vi mode indicators (LightGreen for insert,
  LightYellow for normal)
- Add explicit note in docs on how to disable vi mode indicators

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@eitsupi eitsupi merged commit e6340ba into main Feb 4, 2026
10 checks passed
@eitsupi eitsupi deleted the feat/default-vi-prompt-indicators branch February 4, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: telegraph current vi mode

1 participant