This is one of the things Combobulate [0] tries to solve by using the output of tree-sitter. Simple breadcrumbs are easy enough to do (your cursor has a clear parental lineage) but much harder to do if you want to retain semantic things, or do interesting things with (say) sibling nodes.
You can see the treeview it generates in the GIFs in the link below
Comments
This is one of the things Combobulate [0] tries to solve by using the output of tree-sitter. Simple breadcrumbs are easy enough to do (your cursor has a clear parental lineage) but much harder to do if you want to retain semantic things, or do interesting things with (say) sibling nodes.
You can see the treeview it generates in the GIFs in the link below
[0] https://github.com/mickeynp/combobulate