brandon1024 / cortado.vim

Import Java classes by name, find unused import statemens, and many other goodies!
MIT License
2 stars 0 forks source link

insert import statements for classes and enums #9

Closed brandon1024 closed 2 years ago

brandon1024 commented 2 years ago

Introduce support for importing classes and enums with a specific name (either provided at the command line or under the cursor). The class is imported with the help of a tagfile. Universal-ctags is pretty robust and has good support for Java files, including useful metadata that is used to quickly search for classes.

A popup is shown allowing the user to select which class to import.

The package path to the class is determined by reading the package statement in the file.

This feature isn't perfect. It won't work well with nested classes or classes without package statements.

The project was renamed, now that its a bit more versatile.