/logseq13-full-house-plugin

Logseq Templates you will really love ❤️

Primary LanguageTypeScriptMIT LicenseMIT

                   Full House Templates

Tutorial | Documentation | Showcases

Version Downloads

A part of the Logseq13 family of plugins

⚠️ Under active development ⚠️

Summary

Super-configurable, JavaScript-based Logseq Templates for Humans ❤️ focused on UX and simplicity. This is the missing power in your Logseq knowledge base.

⚜️ Features

  • 💪 Rendering templates :) Completely replaces standard templates (can render them all)
  • 🤘 Accessing to any meta information: pages titles, blocks properties & content, your graph, etc.
  • 📅 Full support of dates-work: parsing, formatting, shifting
  • 👁‍🗨 Use views (or dynamic templates) to get freshly updated data of your graph
  • ☘️ Focusing on UX and simplicity: no more headache on where to add a space to make it work
  • 🔗 Easily make a reference to any journal page: relative to now moment, the current page, specific date or whatever you want
  • 👻 High configurability with JavaScript logic: vars, conditions, loops (if you know what I mean 😈)
  • 🛠 A set of handy template tags to work with

Very quick overview

Create amazing views: Glass Card from Logseq.com landing page

details

See info about glass-card in Showroom.

Insert from lovely UI 🤗

details

See info about pages-tagged-with in Showroom.

Add logic to templates: Book page 📖

                                                   template     →     rendered on page [[Tiago Forta — Building a Second Brain]]

details

- template:: book
  - ``{ var [ authors, name ] = c.page.name.split(' — ') }``
    alias:: ``[name]``
		author:: ``authors.split(', ').map(ref).join(', ')``
		category:: [[📖/productivity]]
		tags:: book,
  - # Book overview
  - ...
  - rendered with template «``c.template.name``» [] (``[c.template.block]``)
  - on ``date.now``

Mix standard templates syntax with new one: Syntax power 💥

template     →     rendered

details

See details about fold-page-ref in Showroom.

- Mixing [./Full House Templates]([[logseq/plugins/Full House Templates]]) and stadard {{renderer(:view,"c.page.namespace.parts[0]")}} templates syntax `'in one template'.bold()`
  template:: mix-syntax
  - Current page:
    - <% current page %>
    - `[c.page]`
    - `ref(c.page)` or `c.page.name`
  - Journal pages:
    - <% tomorrow %>
    - `[tomorrow]` or `date.tomorrow`
  - NLP dates:
    - <% in two days %>
    - `[date.nlp('in two days')]` or `date.nlp('in two days')`
demo1.mp4

Inline properties referencing 🔭

details

See setup instructions in Showroom.

See all plugin features in the Tutorial

If you ❤️ what I'm doing — consider to support my work

Buy Me A Coffee

Installation

From Logseq Marketplace (recommended way):

    

  • Click «...» and open the «Plugins» section (or press t p)
  • Click on the «Marketplace»
  • On the «Plugins» tab search for «Full House Templates» plugin and click install
  • See the Tutorial to start using your new superpower :)

Manual way (in case of any troubles with recommended way)

  • Enable «Developer mode» in «...» → Settings → Advanced
  • Download the latest plugin release in a raw .zip archive from here and unzip it
  • Go to the «...» → Plugins, click «Load unpacked plugin» and point to the unzipped plugin
  • ⚠️ The important point here is: every new plugin release should be updated manually

FAQ

How to insert frequently used templates rapidly fast?

  1. Create the :command in config.edn. Hint: to perform fast searches, use any command name, but add a special character (e.g. the dot «.»)
    :commands
     [
     	["psy client session                                             [.]"
             [[:editor/input "{{renderer :template, psy → session, :page [[client ]], :online}}" {:backward-pos 13}]] ],
     ]
  2. Restart Logseq with ⌘R or Ctrl+R
  3. Use /-command to insert template with only 3 key presses (/.↩︎):

Alternatives

Plugin 🏛 Full House support Details
Dynamic Lookup ✅ full
Smart Blocks ⚠️ partial 🚫 buttons, 🚫 variables
Power Blocks ⚠️ partial 🚫 buttons, 🚫 variables

Roadmap

  • UI: buttons
  • UI: user input & variables

Credits

License

MIT License