Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude targets under the cursor. #83 #87

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

jhgarner
Copy link

Adds an option that excludes any targets directly under the cursor since users probably don't want to jump there. This fixes #83.

Adds an option that excludes any targets directly under the cursor since
users probably don't want to jump there.
@smoka7
Copy link
Owner

smoka7 commented Oct 16, 2024

I think not having a jump target under cursor is the sane behavior and making it configurable is unnecessary.
Please remove the config part and it's ready to merge.

Excluding the cursor is now the default. If someone really wants to
include the cursor, they can probably write a distance function that
turns 0 into 0.1 or something like that.
@smoka7 smoka7 merged commit 08ddca7 into smoka7:master Oct 17, 2024
2 checks passed
@smoka7
Copy link
Owner

smoka7 commented Oct 17, 2024

Thank you for the contribution.

ProgmRuanSilva added a commit to ProgmRuanSilva/neohop.nvim that referenced this pull request Oct 18, 2024
fix: Exclude targets under the cursor. smoka7#83 (smoka7#87)
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.

Jumps won't ignore the current cursor position and will create unnecessary label
2 participants