Add date fixer functions

This commit is contained in:
2026-01-30 11:12:50 +01:00
parent 47889c7d4c
commit 487e96b588
7 changed files with 305 additions and 12 deletions

View File

@@ -190,6 +190,22 @@ When editing a page, click the code block button (angle brackets icon `<>`) in t
This complements DokuWiki's built-in monospace formatting (`''`) by providing quick access to HTML code blocks.
### 0.1) Editor toolbar: Date Fix
The plugin adds two toolbar buttons for normalizing timestamps while editing:
- **Date Fix**: Converts the selected timestamp to `YYYY-MM-DD` (or `YYYY-MM-DD HH:MM:SS` if time is included).
- **Date Fix (All)**: Scans the whole page and normalizes any recognizable timestamps.
Supported input examples include:
- `2026-01-30`
- `30.01.2026`
- `30 Jan 2026`
- `Jan 30, 2026`
- `2026-01-30 13:45`
- `2026-01-30T13:45:00`
### 1) List files by glob pattern
The `{{directory>...}}` syntax (or `{{files>...}}` for backwards compatibility) can handle both directory listings and glob patterns. When a glob pattern is used, it renders as a table: