Skip to content

Merge dev: cursor centering & confirm dialog improvements#316

Merged
esmuellert merged 4 commits intomainfrom
dev
Mar 8, 2026
Merged

Merge dev: cursor centering & confirm dialog improvements#316
esmuellert merged 4 commits intomainfrom
dev

Conversation

@esmuellert
Copy link
Owner

Summary

Merges the dev branch into main, bringing bug fixes and UX improvements.

Changes

feat(navigation): Center cursor after hunk navigation (#290)

  • Cursor is now centered in the viewport after navigating between hunks with [c/]c, improving orientation in large files.

fix(ui): Consolidate discard prompts to use vim.fn.confirm (#310)

  • Replaced inconsistent notification-based discard prompts with native vim.fn.confirm() dialogs across explorer actions and auto-refresh.
  • Provides a cleaner, more predictable user experience for destructive operations.

chore: Add CLAUDE.md with project conventions

Issues Fixed

Closes #290
Closes #310

Diff Stats

  • 7 files changed, 50 insertions(+), 40 deletions(-)

esmuellert and others added 3 commits March 7, 2026 23:29
Points Claude Code to AGENTS.md for conventions and provides
first-use symlink commands to discover skills and agents from
.github/ in .claude/skills/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace nvim_echo+getcharstr and vim.ui.select with vim.fn.confirm
for all discard confirmations, preventing Noice/Snacks from hijacking
the prompt into a disappearing notification.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add zz after ]c and [c to center the target hunk on screen,
matching VSCode behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@esmuellert esmuellert enabled auto-merge March 8, 2026 05:32
The #310 change switched discard prompts from vim.ui.select to
vim.fn.confirm, but the test still mocked vim.ui.select. Update
the mock to return 1 (Discard) from vim.fn.confirm instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@esmuellert esmuellert merged commit 803d7b2 into main Mar 8, 2026
13 checks passed
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.

[feat] Use vim.ui.confirm() for discard prompt instead of notification Center cursor

1 participant