Skip to content

Release v0.12.0: persistent mode indicator#26

Merged
oribarilan merged 1 commit into
mainfrom
feat/mode-indicator
Jun 8, 2026
Merged

Release v0.12.0: persistent mode indicator#26
oribarilan merged 1 commit into
mainfrom
feat/mode-indicator

Conversation

@oribarilan

Copy link
Copy Markdown
Owner

Adds a persistent mode label next to the prompt, replacing the toast that disappeared after a second. Uses SolidJS slots (session_prompt_right and home_prompt_right) with a reactive signal that updates on every mode change.

Color-coded by mode: warning for NORMAL, primary for VISUAL, muted for INSERT, and lowercase (insert) for one-shot normal (matching Vim convention).

New modeIndicator option controls the behavior:

  • "status" (default) — persistent label
  • "toast" — old behavior
  • "none" — disabled

The old modeToast option still works as a fallback when modeIndicator isn't set.

Closes #3

Replaces the ephemeral toast with a persistent label next to the prompt.
Shows NORMAL, INSERT, VISUAL, and (insert) for one-shot normal.

New modeIndicator option: "status" (default), "toast", "none".
Old modeToast option still works as fallback.
@oribarilan oribarilan merged commit 8eabc6e into main Jun 8, 2026
1 check passed
@oribarilan oribarilan deleted the feat/mode-indicator branch June 8, 2026 14:13
S-andres0694 pushed a commit to S-andres0694/vimcode that referenced this pull request Jun 8, 2026
Adds a persistent mode label next to the prompt, replacing the toast
that disappeared after a second. Uses SolidJS slots
(`session_prompt_right` and `home_prompt_right`) with a reactive signal
that updates on every mode change.

Color-coded by mode: warning for NORMAL, primary for VISUAL, muted for
INSERT, and lowercase `(insert)` for one-shot normal (matching Vim
convention).

New `modeIndicator` option controls the behavior:
- `"status"` (default) — persistent label
- `"toast"` — old behavior
- `"none"` — disabled

The old `modeToast` option still works as a fallback when
`modeIndicator` isn't set.

Closes oribarilan#3
S-andres0694 pushed a commit to S-andres0694/vimcode that referenced this pull request Jun 8, 2026
Adds a persistent mode label next to the prompt, replacing the toast
that disappeared after a second. Uses SolidJS slots
(`session_prompt_right` and `home_prompt_right`) with a reactive signal
that updates on every mode change.

Color-coded by mode: warning for NORMAL, primary for VISUAL, muted for
INSERT, and lowercase `(insert)` for one-shot normal (matching Vim
convention).

New `modeIndicator` option controls the behavior:
- `"status"` (default) — persistent label
- `"toast"` — old behavior
- `"none"` — disabled

The old `modeToast` option still works as a fallback when
`modeIndicator` isn't set.

Closes oribarilan#3
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.

mode indication

1 participant