logseq-url-plus icon indicating copy to clipboard operation
logseq-url-plus copied to clipboard

A Logseq plugin that takes the last token of an editing block, be it a word or URL, and augments the block with associated metadata in various formats

URL+ Plugin for Logseq

URL+ is a Logseq plugin written in ClojureScript with shadow-cljs as the main tooling.

The plugin takes the last token of an editing block, be it a word or URL, and augments the block with associated metadata in various formats.

If the last token is a valid URL, metadata or API response is fetched, then the block is modified by applying a selected template. The plugin also fetches compact dictionary definition of a word term, or attach a few useful links to it.

demo

Slash Commands

  • URL+ [title](url)
  • URL+ [title](url) description
  • URL+ Metadata -> Logseq Attributes
  • URL+ Metadata -> EDN Code
  • URL+ Metadata -> JSON Code
  • URL+ API -> Logseq Attributes
  • URL+ API -> Logseq Attribute Blocks
  • URL+ API -> EDN Code
  • URL+ API -> JSON Code
  • URL+ Append Definition
  • URL+ Extract tweet text of twitter.com
    • Twitter developer access token required
    • Paste the token in the plugin settings panel
    • For details on the Twitter developer programme, see https://developer.twitter.com/en/docs/authentication/oauth-2-0/bearer-tokens
  • URL+ Inspector ...
    • Opens the inspector UI for token insights and template customization Inspector UI

Why Another URL Formatter?

  • Prefer slash command / over autoformat
  • Need more formatting templates beyond the default [title](url)
  • Works for block with multiple terms and even multiline. The plugin only considers the last term without other content in the active editing block
  • Persist URL metadata or API response in graph
  • Learn Logseq plugin dev with ClojureScript + Rum + Babashka + tailwindcss (Sample ClojureScript based plugin projects are rare when this project started)

Plugin Devevelopment in ClojureScript

See technical notes.