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
Currently, in order to use the Match commands like mi and ma, the cursor needs to be on/within the object you're trying to match.
It would be nice if the cursor would jump to the next match if there is no match under the cursor.
This would provide an enhanced user experience, consistent with how vim-surround behaves, and consistent with how Helix can increment/decrement numbers without being under the cursor (since #1778).
Example of desired behaviour, shown in vim using vim-surround, when the cursor is at the start of the line, vi" visually selects inside the quotes:
Example of current behaviour in Helix, when the cursor is at the start of the line, mi" does not match inside the quotes:
The text was updated successfully, but these errors were encountered:
There's a PR working to remove that behavior from C-a/C-x #4123. Jumping to the next object really complicates the behavior when you're using multiple selections and complicates the code a bunch. In general you can use textobjects like ]f to jump to the next textobject instead of this automatic jumping behavior
Currently, in order to use the Match commands like
mi
andma
, the cursor needs to be on/within the object you're trying to match.It would be nice if the cursor would jump to the next match if there is no match under the cursor.
This would provide an enhanced user experience, consistent with how vim-surround behaves, and consistent with how Helix can increment/decrement numbers without being under the cursor (since #1778).
Example of desired behaviour, shown in vim using vim-surround, when the cursor is at the start of the line,
vi"
visually selects inside the quotes:Example of current behaviour in Helix, when the cursor is at the start of the line,
mi"
does not match inside the quotes:The text was updated successfully, but these errors were encountered: