Skip to content

Conversation

re0312
Copy link

@re0312 re0312 commented Oct 2, 2025

What this PR does / why we need it:

This PR adds a new configuration option vim.easymotionOnlyVisibleRange that restricts EasyMotion markers to only visible content in the editor, ignoring folded/collapsed code sections.

Key changes:

  • Added vim.easymotionOnlyVisibleRange configuration option (default: false)
  • Modified EasyMotion's sortedSearch method to check VS Code's visibleRanges when the option is enabled
  • Updated type definitions and method signatures to support the new functionality
  • Maintains full backward compatibility - existing behavior is unchanged when option is disabled

Which issue(s) this PR fixes

fixes #8112

Special notes for your reviewer:

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.

Can easymotion skip folded region in vscode, so that all the visible region on screen can display markers?

1 participant