-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Auto resolve annotation type #87
Comments
Hello ! Thanks for your feedback !
I think you are proposing something like: #74 is it ? Another suggestion, file type scope, either deduced automatically or manually, it would be great if you could generate comments for all symbols in the current file (that are supported for the specific language) For these, i'm not sure: i think that the focus in neogen is doing one thing, and doing it well. If we start to add subtelties to neogen capabilities (like visually select before doing Neogen), it'll be hard for users to know what Neogen will do. |
@danymat Hi, yes, this is the same idea. I see that there is a PR for it already, did not see that earlier, sorry for the duplicate. |
I prefer having a command called 'Neogen all_file' (or smt like that) to do on file scope. But the problem is that Neogen is not written with this idea in mind, and i guess it'll be very complicated to find every relevant node |
Hello, I'm getting back to coding |
Hi, upon further inspection, yes, at least the possibility to comment different types of nodes. For example as i mentioned above, when the cursor is on a class, function, struct, property etc. Also as an obvious extension to this an improvement can be added for when visual selection is active, to comment out nodes within the selection (if there are valid ones in the current visual selection) |
Right now neogen provides documentation depending of what you request (neogen func, neogen class) |
Hello, this feature is now available on Neogen 2.11 ! (#116 ) |
Hi, great plugin that has little to be desired. One question though, and maybe I am probably missing something, but i don't seem to understand why when not specifying arguments to neogen generate will automatically fallback to func instead of trying to guess the current node the cursor is on. For example when i am on a class or a field or a function. As it is now users are required to have multiple key bindings for different node types. I was testing with java. Is it possible, using tree sitter to properly resolve the current symbol/node the cursor is on and then use that internally when calling generate ?
Another suggestion, file type scope, either deduced automatically or manually, it would be great if you could generate comments for all symbols in the current file (that are supported for the specific language)
And one more, visual selection - selecting multiple symbols (say functions inside a class) for example and doing Neogen.
The text was updated successfully, but these errors were encountered: