Skip to content
Discussion options

You must be logged in to vote

I am afraid this is expected with the default cover_or_next search method. Mostly as a combination of the following:

  • The built-in argument textobject works only based on the text without any semantic understanding of the structure.
  • First search is done inside current line and only then - inside neighborhood lines.

So in this case the str inside [] is recognized as a single argument (because it is inside balanced []) while there is no other arguments when taking only a single line into account (there is no other balanced brackets; they are on neighborhood lines). This makes 'mini.ai' do the following search:

  • Search covering textobject in the current line. If cursor is not on str - there…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kayzels
Comment options

Answer selected by Kayzels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.ai
2 participants