Skip to content
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

Java: Include annotations in af and aF textobj #24

Open
flwyd opened this issue Nov 18, 2022 · 0 comments
Open

Java: Include annotations in af and aF textobj #24

flwyd opened this issue Nov 18, 2022 · 0 comments

Comments

@flwyd
Copy link

flwyd commented Nov 18, 2022

When operating on a whole function it is likely that the user would like to include any annotations. JUnit is a common example:

@Test
public void testGreeter() {
  assertEquals(greeter.greet("world"), "Hello world!");
}

daf or dAF should delete the function and the @Test annotation rather than leaving the latter suddenly attached to the next method.

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

No branches or pull requests

1 participant