benjypng / logseq-todoist-plugin

MIT License
125 stars 19 forks source link

feat: use graph name when append logseq url #31

Closed TomazWang closed 2 years ago

TomazWang commented 2 years ago

Why

When appendLogseqUri is enabled, todoist-plugin always append logseq uri as the graph name was "logseq" (as in logseq://graph/logseq?block-id=xxx).

This PR queries current graph name and use it in the deeplink uri for better navigation experience.

Changes

  1. Get current graph name with logseq plugin api logseq.App.getCurrentGraph()
  2. Pass the graph name to sendTask function.
  3. Use graph name in uri.