How to get the name of the current graph? API docs are too way cryptic, need help.
UPD. This question was about plugin, for how to do it in custom.js - see the first answer.
How to get the name of the current graph? API docs are too way cryptic, need help.
UPD. This question was about plugin, for how to do it in custom.js - see the first answer.
Try logseq.api.get_current_graph().name
Thanks for the suggestion. The current way seems to be this:
const graphName = (await logseq.App.getCurrentGraph()).name
In plugins, yes. But in custom.js it is simpler.
Oh, I wasn’t aware of custom.js