Skip to content

Fix iw text object as iW to select school.lesson-6-message#694

Merged
Olical merged 1 commit intoOlical:mainfrom
gbroques:fix-school-word-motion
Aug 8, 2025
Merged

Fix iw text object as iW to select school.lesson-6-message#694
Olical merged 1 commit intoOlical:mainfrom
gbroques:fix-school-word-motion

Conversation

@gbroques
Copy link
Contributor

@gbroques gbroques commented Aug 1, 2025

Fix iw text object as iW to select school.lesson-6-message since iw doesn't select the dot . as it's not included in the definition of a vim "word".

image
@Olical
Copy link
Owner

Olical commented Aug 8, 2025

Good catch! This might actually vary depending on use of tree-sitter or not, I think iW is safer though and will work in both cases, regardless of how your text objects are defined. A "word" is quite a personal definition within Neovim with lots of ways to move the boundaries per language so erring on the side of caution is a good idea.

@Olical Olical merged commit aa33996 into Olical:main Aug 8, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants