Skip to content

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

License

Notifications You must be signed in to change notification settings

rlhk/logseq-url-plus

Repository files navigation

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
  • 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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages