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
It would be great if we were to have an option in generate to scan over the entire file and all supported for annotation nodes, and annotate them at once. Another extension of this feature could be to allow for visually selecting multiple nodes and annotating them and their child nodes - e.g if one visually selects a class then the class and it's methods should be annotated.
The text was updated successfully, but these errors were encountered:
Hello! Neat idea.
A first example of this very same idea was created for the tests case, in order to generate all annotations at once.
The idea is to take the last one in the file, generate it, and iterate by going up.
See https://github.com/danymat/neogen/blob/main/tests/utils/textmate.lua
However, the most difficult here would be to know "where" to generate in the file.
In the tests, it knows because we put |cursor| in the code
It would be great if we were to have an option in generate to scan over the entire file and all supported for annotation nodes, and annotate them at once. Another extension of this feature could be to allow for visually selecting multiple nodes and annotating them and their child nodes - e.g if one visually selects a
class
then the class and it's methods should be annotated.The text was updated successfully, but these errors were encountered: