sebastianlam / logseq-url-plus

A Logseq plugin that retrieves common information based on the last term of an editing block.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL+ Plugin for Logseq

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

The plugin retrieves common information based on the last term of an editing block.

If the last term is a valid URL, metadata or API response is fetched, then the block is modified by applying a selected template. The plugin could also fetch 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+ Link Wiktionary URL

Why Another URL Formatter?

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

Plugin Devevelopment in ClojureScript

See technical notes.

About

A Logseq plugin that retrieves common information based on the last term of an editing block.

License:MIT License


Languages

Language:Clojure 97.3%Language:Shell 1.8%Language:HTML 0.9%