chrisgrieser / nvim-spider

Use the w, e, b motions like a spider. Move by subwords and skip insignificant punctuation.
MIT License
667 stars 13 forks source link

[Bug]: Bugs when camelCase names have numbers in them #31

Closed leg7 closed 1 year ago

leg7 commented 1 year ago

Bug Description

w and b skip over the number

example (^ are the positions the cursor jumps to with w and b)

divisibleBy10Test
^--------^---^

end skips over subword before number

example:

divisibleBy10Test
--------^---^---^

kebab-case works as expected.

Reproduction & Sample Text

...

neovim version

0.9.4

Special Settings

not that I know of.

Make sure you have done the following

chrisgrieser commented 1 year ago

Ah, good call, actually never noticed since I rarely have numbers in my camelCase words. Fixed.