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

[Bug]: Subword jumps / doesn't select single character subwords. #75

Open
1 task done
AlansCodeLog opened this issue Feb 10, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@AlansCodeLog
Copy link

Bug Description

Not sure if this might be intended, but for example if my cursor | is on a word like |xSide , if I do a subword selection it selects Side, but if I'm on sideX|, I get X. Using camelcase I would expect x to also be a subword here and not jump ahead.

I see some commands are forward seeking but as far as I understood the table subword shouldn't be, but I'm getting jumping in cases like | xSide => Side as well.

I know it sounds maybe a bit odd to want a single character subword but reason I ran into this is I'm making a word cycling plugin and using this plugin to get the subword. And I'd like to be able to make single character replacements (e.g. x for y). I can work around this I think, but would be nice to just use subword directly.

Relevant Screenshot

No response

Reproduction & Sample Text

before: |xSide after: x|Side| expect: |x|Side
before: | xSide after: x|Side| expect: |x|Side

neovim version

v0.9.5

Plugin version is 035243e

Make sure you have done the following

  • I have updated to the latest version of the plugin.
@AlansCodeLog AlansCodeLog added the bug Something isn't working label Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant