Status: open Group: Next_Release_(example) Created: Sat Dec 06, 2014 10:14 PM UTC by thomas0774 Last Updated: Sat Dec 06, 2014 10:14 PM UTC Owner: nobody
It would be a really helpful feature if hovering with the mouse over a
variable (wire / reg / ...) would show its declaration.
Additionally, F3 should also jump to the declaration.
Indeed. However, it does not work for module inputs/outputs (which I used for testing when playing around with the example design). So it would be nice if support for the inputs/outputs could be added, too.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That's an interesting point. I did just confirm that Open Declaration doesn't appear to work for module ports (strange!). Thomas, feel free to file a bug on this. I'll look into correcting this!
-Matthew
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like to move attention back to original request (show declaration when hovering): I guess this could be quite simple to implement - just display the line to which F3 would jump to when hovering. (This would display also a comment which is typically right beside the declaration.) (A more sophisticated solution could also display some lines above and below declaration if the include just comments as these comments might be related to the variable)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hover has been enhanced to display multiple types of information. Previously, the hover would appear only if the element had a NaturalDocs comment associated with it. Now:
If the element is documented, the documentation is displayed
Else information about the element's declaration is displayed
Giving focus to the hover (move the mouse over the hover box or select F2) allows all the information elements to be accessed via icons at the bottom of the hover. If the selected element is a macro, the expansion of the macro can be shown.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
F3 typically does jump to it's declaration.
On Dec 6, 2014 3:14 PM, "thomas0774" thomas0774@users.sf.net wrote:
Related
Feature Requests:
#96Indeed. However, it does not work for module inputs/outputs (which I used for testing when playing around with the example design). So it would be nice if support for the inputs/outputs could be added, too.
That's an interesting point. I did just confirm that Open Declaration doesn't appear to work for module ports (strange!). Thomas, feel free to file a bug on this. I'll look into correcting this!
-Matthew
Thanks, I have filed a bug.
I would like to move attention back to original request (show declaration when hovering): I guess this could be quite simple to implement - just display the line to which F3 would jump to when hovering. (This would display also a comment which is typically right beside the declaration.) (A more sophisticated solution could also display some lines above and below declaration if the include just comments as these comments might be related to the variable)
Hover has been enhanced to display multiple types of information. Previously, the hover would appear only if the element had a NaturalDocs comment associated with it. Now:
Giving focus to the hover (move the mouse over the hover box or select F2) allows all the information elements to be accessed via icons at the bottom of the hover. If the selected element is a macro, the expansion of the macro can be shown.