You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, thanks for the amazing plugins! I've recently been looking into using mini.ai's textobject search to automatically generate targets for leap-spooky. However I've noticed that some text objects I was expecting to be there do not exist.
Here is the full list of 'builtin' ones according to the source I have:
I was just wondering what the reason is for the ommission of w (word), W (WORD) and p (paragraph)? And if it makes sense to add them in?
The text was updated successfully, but these errors were encountered:
Well, mostly because they are pretty good in their built-in implementation. That said, I miss sometimes the possibility to change the next word with cinw.
Implementing iW and aW should be pretty straightforward as there are %S and %s in Lua patterns for non-blank and blank characters.
Implementing iw and aw seems to be many times harder as Lua patterns recognize alphanumeric only for Latin alphabet. There is also an issue of respecting user settings like 'iskeyword'.
Making ip and ap is also possible, but not with Lua patterns.
I'll consider it, but don't think it will be added in 'mini.ai' builtin textobjects.
Contributing guidelines
Module(s)
mini.ai
Description
Hi there, thanks for the amazing plugins! I've recently been looking into using mini.ai's textobject search to automatically generate targets for leap-spooky. However I've noticed that some text objects I was expecting to be there do not exist.
Here is the full list of 'builtin' ones according to the source I have:
I was just wondering what the reason is for the ommission of
w
(word),W
(WORD) andp
(paragraph)? And if it makes sense to add them in?The text was updated successfully, but these errors were encountered: