Skip to content

Added object to cross over empty lines #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

D4KU
Copy link

@D4KU D4KU commented Jan 17, 2022

I added a text-object to include adjacent simple line comments only separated by an empty or white-space-filled line.
So if > marks the current cursor line, comments b to d are matched.

  // a
  if (false)
     return;
  // b

  // c
> // d

Because this new object is greedier than the others I figured it would make sense to call it aC, and renamed the existing aC to iC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant