chrisgrieser / nvim-spider

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

Feature Request: Allow option for empty lines to be a significant punctuation (especially for change) #15

Closed mech-a closed 1 year ago

mech-a commented 1 year ago

Feature Requested

Let's consider the case that we want to change a word in a phrase that isn't ended by significant punctuation and there are new lines after that. If we change a word, it will go to the next significant punctuation, which ends up being a completely new line. See the linked video example. I think this is a significant issue considering that it can delete a lot of space unexpectedly.

I think that making empty lines a significant punctuation is not the ideal solution to this, but I wanted to start a conversation to see what might be the best. Maybe one solution Is there a way that we can customize the behavior of Spider-w/e/b/ge such that when we are moving without any commands, it is

Relevant Screenshot

No response

Checklist