πŸ”— ToggleList
This is a simple plugin to toggle the checklist states (paragraph/list/checklist/custom sytles...)
favorite
share
by Lite C
37
11,510
Latest Version
18 days ago
Changelog

Feature: Replace the SVG state diagram with Obsidian's JSON Canvas format. This hugely reduce the file size (from 6.7 Mb to 44.8 Kb). #33
User can now generate a canvas for state groups and command bindings.

Bug Fix: Fix #34 {time:: .} now support YYYY/MM/DD. All supported time format can be found below.

const timeFormats = [
    { rule: /\\{time:: YYYY-MM-DD hh:mm\\}/, pattern: "\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}" },
    { rule: /\\{time:: YYYY\/MM\/DD hh:mm\\}/, pattern: "\\d{4}\/\\d{2}\/\\d{2} \\d{2}:\\d{2}" },
    { rule: /\\{time:: YYYY-MM-DD\\}/, pattern: "\\d{4}-\\d{2}-\\d{2}" },
    { rule: /\\{time:: YYYY\/MM\/DD\\}/, pattern: "\\d{4}\/\\d{2}\/\\d{2}" },
    { rule: /\\{time:: hh:mm:ss\\}/, pattern: "\\d{2}:\\d{2}:\\d{2}" },
    { rule: /\\{time:: hh:mm\\}/, pattern: "\\d{2}:\\d{2}" },
    { rule: /\\{time:: YYYY-MM\\}/, pattern: "\\d{4}-\\d{2}" },
    { rule: /\\{time:: YYYY\/MM\\}/, pattern: "\\d{4}\/\\d{2}" },
    { rule: /\\{time:: MM-DD\\}/, pattern: "\\d{2}-\\d{2}" },
    { rule: /\\{time:: MM\/DD\\}/, pattern: "\\d{2}\/\\d{2}" },
    { rule: /\\{time:: YYYY\\}/, pattern: "\\d{4}" },
    { rule: /\\{time:: MM\\}/, pattern: "\\d{2}" },
    { rule: /\\{time:: DD\\}/, pattern: "\\d{2}" },
    { rule: /\\{time:: hh\\}/, pattern: "\\d{2}" },
    { rule: /\\{time:: mm\\}/, pattern: "\\d{2}" },
    { rule: /\\{time:: ss\\}/, pattern: "\\d{2}" }
];
πŸ’‘ Similar Plugins
info
β€’ Similar plugins are suggested based on the common tags between the plugins.