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]: Small inconsistency with cw: single letter words #40

Open bluss opened 8 months ago

bluss commented 8 months ago

Make sure you have done the following

Bug Description

If we'd want to have backwards compatibility with regular cw, then this case is not covered:

c<cmd>lua 
^  cursor on first letter

ce on the single letter word c initates a change word of the whole chunk c<cmd. I'm talking about ce here because that's described as the "vanilla nvim cw behaviour".

Reproduction & Sample Text

c<cmd>lua 
^  cursor on first letter

command cefoo<Esc>

Actual text after: foo>lua

Expected text after foo<cmd>lua

neovim version

0.9.5

Special Settings

No response

Thanks for the nice plugin, I think your notion of insignificant punctuation is right. If this issue is just annoying, then let's close it, I just thought it was interesting to discuss this.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, for example "bump", and it will be kept open.

TheSast commented 2 months ago

bump