chanhx / crabviz

🦀 A LSP-based interative call graph generator
Apache License 2.0
646 stars 20 forks source link

Export interactive crabviz page #32

Open naseer-nv opened 3 months ago

naseer-nv commented 3 months ago

Thanks for the utility! I want to export the crabviz page entirely as html (including the click functionality) as well as reference the links to the code in an online browser. Can you please consider this feature request?

chanhx commented 3 months ago

Good idea! We can bundle all related files of a call graph into a single html file to share that interactive call graph.

And there is a plan for the "jump to the code" feature, but I would prefer to do it just in the editor, because links to the code just work in the local environment.

I think we would have these features in v0.5.0 .

naseer-nv commented 3 months ago

Jump to the code in the case of an exported html can be done by providing a base URL pattern as a user provided workspace config setting - that URL can be an opengrok link or a GitHub link for example. Crabviz can then use the relative code path to the workspace root and that base pattern to generate the link.

chanhx commented 3 months ago

Hmm, that is beyond the project scope.