Skip to content

Commit 8778f8f

Browse files
author
luginf
committed
use prettier
1 parent 098bb9a commit 8778f8f

1 file changed

Lines changed: 24 additions & 26 deletions

File tree

zettelkasten/README.md

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,34 @@ This script implements that principle inside QOwnNotes using the native `[[filen
2121

2222
Three toolbar buttons are registered:
2323

24-
| Button | Action |
25-
|--------|--------|
26-
| **ZK-ID** | Insert a new unique ZK ID at the cursor position |
24+
| Button | Action |
25+
| ----------- | ---------------------------------------------------------------------------- |
26+
| **ZK-ID** | Insert a new unique ZK ID at the cursor position |
2727
| **ZK-Link** | Open a searchable dialog to pick a note and insert a `[[filename\|id]]` link |
28-
| **ZK-Fix** | Scan all notes and repair every link whose filename is out of date |
28+
| **ZK-Fix** | Scan all notes and repair every link whose filename is out of date |
2929

3030
## ID format
3131

3232
IDs are generated from the current date and time using a configurable format string.
3333

3434
Available tokens:
3535

36-
| Token | Value |
37-
|-------|-------|
38-
| `%Y` | 4-digit year |
39-
| `%M` | 2-digit month |
40-
| `%D` | 2-digit day |
41-
| `%h` | 2-digit hour |
42-
| `%m` | 2-digit minute |
43-
| `%s` | 2-digit second |
36+
| Token | Value |
37+
| ----- | -------------- |
38+
| `%Y` | 4-digit year |
39+
| `%M` | 2-digit month |
40+
| `%D` | 2-digit day |
41+
| `%h` | 2-digit hour |
42+
| `%m` | 2-digit minute |
43+
| `%s` | 2-digit second |
4444

4545
Examples:
4646

47-
| Format | Result |
48-
|--------|--------|
49-
| `%Y%M%D%h%m%s` *(default)* | `20260430143012` |
50-
| `id%Y%M%Dx%h%m%s` | `id20260430x143012` |
51-
| `%Y-%M-%D` | `2026-04-30` |
47+
| Format | Result |
48+
| -------------------------- | ------------------- |
49+
| `%Y%M%D%h%m%s` _(default)_ | `20260430143012` |
50+
| `id%Y%M%Dx%h%m%s` | `id20260430x143012` |
51+
| `%Y-%M-%D` | `2026-04-30` |
5252

5353
## ID detection
5454

@@ -63,18 +63,16 @@ When you rename a note in QOwnNotes, any `[[oldName|id]]` links in other notes b
6363
- **Automatic** — when you open the renamed note, the script silently rewrites every backlink pointing to it with the new filename. This happens in the background with no interruption.
6464
- **Manual** — click **ZK-Fix** at any time to repair all stale links across the entire vault in one pass.
6565

66-
> **Note:** QOwnNotes may show a native dialog asking whether to replace link occurrences after a rename. That dialog does not understand the `[[filename|id]]` format and will not change anything. You can safely click *No* and let this script handle it, or disable the dialog entirely in *SettingsNotes*.
66+
> **Note:** QOwnNotes may show a native dialog asking whether to replace link occurrences after a rename. That dialog does not understand the `[[filename|id]]` format and will not change anything. You can safely click _No_ and let this script handle it, or disable the dialog entirely in _SettingsNotes_.
6767
6868
## Settings
6969

70-
All settings are accessible in *Settings → Scripting → Zettelkasten*:
71-
72-
| Setting | Default | Description |
73-
|---------|---------|-------------|
74-
| ID generation format | `%Y%M%D%h%m%s` | Format string for new IDs |
75-
| ID detection pattern | `\d{14}` | ECMAScript regex to locate IDs in filenames and content |
76-
| Auto-repair backlinks on note open | enabled | Automatically fix stale backlinks when a note with a ZK ID is opened |
70+
All settings are accessible in _Settings → Scripting → Zettelkasten_:
7771

72+
| Setting | Default | Description |
73+
| ---------------------------------- | -------------- | -------------------------------------------------------------------- |
74+
| ID generation format | `%Y%M%D%h%m%s` | Format string for new IDs |
75+
| ID detection pattern | `\d{14}` | ECMAScript regex to locate IDs in filenames and content |
76+
| Auto-repair backlinks on note open | enabled | Automatically fix stale backlinks when a note with a ZK ID is opened |
7877

7978
fix with qmlformat
80-

0 commit comments

Comments
 (0)