nvim-spider
nvim-spider copied to clipboard
[Bug]: Small inconsistency with cw: single letter words
Make sure you have done the following
- [X] I have updated to the latest version of the plugin.
- [X] I have read the README.
- [X] If the issue is about
cwordw, I have read the note onwin operator pending mode.
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.
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.
bump