5 comments

  • solarkraft1 day ago
    As a semi-aside: Are there headless tools for interacting with Logseq databases, especially queries? This would be super useful for automations.
    • cldwalker27 minutes ago
      When Logseq is running locally, you can use its [local http server](<a href="https:&#x2F;&#x2F;docs.logseq.com&#x2F;#&#x2F;page&#x2F;local%20http%20server" rel="nofollow">https:&#x2F;&#x2F;docs.logseq.com&#x2F;#&#x2F;page&#x2F;local%20http%20server</a>) to do this. <a href="https:&#x2F;&#x2F;github.com&#x2F;logseq&#x2F;nbb-logseq">https:&#x2F;&#x2F;github.com&#x2F;logseq&#x2F;nbb-logseq</a> is useful for automations and is already used to create github actions e.g. <a href="https:&#x2F;&#x2F;github.com&#x2F;logseq&#x2F;publish-spa">https:&#x2F;&#x2F;github.com&#x2F;logseq&#x2F;publish-spa</a>. In the upcoming database version, nbb-logseq is able to read and write Logseq graphs completely independent of the app - <a href="https:&#x2F;&#x2F;github.com&#x2F;logseq&#x2F;docs&#x2F;blob&#x2F;feat&#x2F;db&#x2F;db-version.md#scripting">https:&#x2F;&#x2F;github.com&#x2F;logseq&#x2F;docs&#x2F;blob&#x2F;feat&#x2F;db&#x2F;db-version.md#sc...</a>
    • solarkraft22 hours ago
      Logseq can expose an HTTP API: <a href="https:&#x2F;&#x2F;docs.logseq.com&#x2F;#&#x2F;page&#x2F;local%20http%20server" rel="nofollow">https:&#x2F;&#x2F;docs.logseq.com&#x2F;#&#x2F;page&#x2F;local%20http%20server</a><p>This is less ideal than a library due to the complexity of running it; setting it up on a server will probably be annoying. But it <i>should</i> give you a lot of the power Logseq has, it apparently being the same API as plugins get to use.
    • jrswab21 hours ago
      I don&#x27;t know of any at the moment. That said I do want to add the ability to search pages and navigate links within the Logseq graph. This would have to be in the TUI as I don&#x27;t want to maintain several plugins for various editors.
  • snthpy1 day ago
    Awesome. I was just looking for something like this this week. I was thinking logseq + nvim + textual but bubbletea is also great.
    • jrswab21 hours ago
      If you run `lsq` without `-t` it will open with what you have defined as `$EDITOR`.
  • basedrum17 hours ago
    Thank you! I also wanted this
    • jrswab17 hours ago
      You&#x27;re welcome! I&#x27;m glad it&#x27;s not some niche thing that only I needed XD<p>If you have any idea that will make your workflow easier add an &quot;issue&quot; on GitHub so I can keep track of it.
  • Gys1 day ago
    Some screenshots would be nice ;)
    • jrswab21 hours ago
      I&#x27;ll add some to the repo when I get a chance.
  • kaushikrabha2 days ago
    [flagged]