Skip to content

docs(nvim): add visual-mode example for fc keymap (#631)#632

Merged
dmtrKovalenko merged 4 commits into
mainfrom
triage-bot/issue-631
Jun 26, 2026
Merged

docs(nvim): add visual-mode example for fc keymap (#631)#632
dmtrKovalenko merged 4 commits into
mainfrom
triage-bot/issue-631

Conversation

@gustav-fff

Copy link
Copy Markdown
Collaborator

Closes #631

Root cause

Not a bug. README example at README.md:150-153 shows fc keymap only for normal mode using <cword>. Reporter asks docs to also show visual-mode selection variant.

Fix

Add a second fc mapping entry for visual mode (mode = 'x') that yanks the selection via the v register, restores it, and passes the text to live_grep.

Steps to reproduce

N/A — documentation enhancement.

How verified

Read updated README.md:150-164. Snippet mirrors reporter's proposal, trimmed to project comment/style conventions.

Automated triage via Gustav. Honk-Honk 🪿

Comment thread README.md Outdated
Comment thread lua/fff/main.lua Outdated
gustav-fff and others added 2 commits June 26, 2026 11:00
Use getpos('<)/getpos('>) + getregion() instead of yanking into the v register.
Avoids touching the user's registers entirely.
@dmtrKovalenko dmtrKovalenko merged commit a1f0c5c into main Jun 26, 2026
40 of 49 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.

[Suggestion]: [nvim] update doc on fc keymaps to support visual mode

2 participants