benjypng / logseq-datenlp-plugin

MIT License
74 stars 6 forks source link

[:gift_heart: Sponsor this project on Github or :coffee: Get me a coffee if you like this plugin!

This README has not been completely updated. Feel free to ask around Discord for a feature request!

Overview

This super simple plugin uses NLP to parse your content for dates and times so that they can be easily tracked through your yournal pages.

Simple Parsing

Complex Parsing with Scheduled and Deadline options

Auto Inline Parsing

As per the video, use %enable auto-parsing% to turn on auto parsing (off by default) and %disable auto-parsing% to turn it off.

Or, you can just use the hotkey combination a p to toggle auto-parsing on and off.

Semi-auto Inline Parsing

Like auto inline-parsing, but this time the parsing is triggered only if the date/time language is prefixed with an @, % or ^. Without the prefix, the block will not auto-parse. The available prefixes are:

You can use the hotkey combination s p to toggle semi-auto-parsing on and off. See the video below for instructions:

Using the Command Palette

Use Ctrl + Shift + p for Windows or Cmd + Shift + p for Mac. Then type @goto and select the first option that comes up. You will be presented with a search box to enter the day or date you want to go to.

Changing languages

Currently, the following languages are supported:

  1. German: de
  2. French: fr
  3. Japanese: ja
  4. Dutch: nl
  5. Portuguese: pt
  6. Russion: ru
  7. Chinese: zh

Add the following line inside the plugin settings, and change the language accordingly:

    {
        "lang": "ja"
    }

Installation

If the plugin is not available in the marketplace, you can load it manually by downloading the latest release here and manually loading it into Logseq.

Credits

SherlockJS

Chrono

Darwis once again for his out of the box thinking