Skip to content

Full And Sanitized Node Documentation #2668

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

Closed
stefgodin opened this issue Feb 7, 2024 · 3 comments
Closed

Full And Sanitized Node Documentation #2668

stefgodin opened this issue Feb 7, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@stefgodin
Copy link

Is this a question?
No

Can this functionality be implemented utilizing API?
Not a functionality per say.

Is your feature request related to a problem? Please describe.
Many functions of the API retrieves nodes such as get_node_under_cursor().
There doesn't seem to be any documentation about the structure of a node except in the sort API section. But there are some missing fields in the doc.

Describe the solution you'd like
It would be nice to have a small section of the documentation dedicated to the content of a node. This would make it officially part of the API.

Describe alternatives you've considered
Check the node builder source code but that does not prevent invisible breaking changes to the node API.

Additional context
This issue is raised after a short post on reddit.

I don't know if this qualifies as a feature request, feel free to move it around.

nvim-tree is an awesome plugin and you did a really good job.

@alex-courtis
Copy link
Member

alex-courtis commented Feb 11, 2024

We do have https://github.com/nvim-tree/nvim-tree.lua/blob/6a99f5af78b5dd531d49ec0a5158dd0f9a7c992b/lua/nvim-tree/node.lua to document all the contents of various nodes, however that's not super informative.

Proposal:

  • add more descriptions and include it in help
  • note the differences between the cut down sanitized node as per sorter et. al.

@alex-courtis alex-courtis added documentation Improvements or additions to documentation and removed feature request labels Feb 11, 2024
@alex-courtis alex-courtis changed the title Tree node table documentation Full And Sanitized Node Documentation Feb 11, 2024
@alex-courtis
Copy link
Member

alex-courtis commented Mar 23, 2025

@stefgodin _meta api documentation has been added for all the nvim_tree.api.Node types, as they are exposed via API.

https://github.com/nvim-tree/nvim-tree.lua/blob/master/lua/nvim-tree/_meta/api.lua

Does that satisfy your requirements?

More work is required for api: #3088

@stefgodin
Copy link
Author

@alex-courtis Yes! Thank you. Feel free to close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants