improvements on the ui

This commit is contained in:
2026-11-25 07:14:49 +01:00
parent 3afdb6d67f
commit b7c72b9e16
249 changed files with 19702 additions and 17358 deletions
+48 -34
View File
@@ -1,13 +1,13 @@
# Plak v1 spec
Plak is a native macOS notepad with one long page of plain text. It has no files to open or save: you open it, you paste or type at the bottom, and it keeps everything. Only three things render: images, code blocks and tables. A pasted or dropped image shows as the image itself; pasted code shows with colours; a pasted CSV shows as a grid.
Plak is a native macOS notepad with one long page of plain text. It has no files to open or save: you open it, you paste or type at the bottom, and it keeps everything of the last 14 days (1.14). Only three things render: images, code blocks and tables. A pasted or dropped image shows as the image itself; pasted code shows with colours; a pasted CSV shows as a grid.
## 1. Behaviour
### 1.1 The page
- There is one page. It grows at the bottom, without limit.
- The page is one plain text: you can click anywhere and type, and you can select across paragraphs. There is no markdown rendering: `# title` or `**bold**` show as you type them. Only images (1.7), code blocks and tables (1.8) render.
- The text sits in one reading column in the centre of the window. The column is about 68 characters wide by default; ⌘. and ⌘, make it wider or narrower, from 40 to 160 characters in steps of 8. The window width still caps it.
- The text sits in one reading column in the centre of the window. The column can move to the right to make room for the bookmark index (1.11). The column is about 68 characters wide by default; ⌘. and ⌘, make it wider or narrower, from 40 to 160 characters in steps of 8. The window width still caps it.
- A **block** is a run of lines without a blank line in it. Blocks exist only for the created date (1.6); you do not see them as boxes.
- A line that starts with one `=` directly followed by a title is a **bookmark** (1.11).
@@ -46,11 +46,11 @@ Plak is a native macOS notepad with one long page of plain text. It has no files
### 1.6 Created date
- Each block knows when it was made: the moment you typed or pasted its first character, or dropped its image.
- The page does not show the created date of every block. It shows the created date of a bookmark (1.11): the date of the block that holds the bookmark line. A click in the space beside the column acts as a click in the text next to it.
- The page does not show the created date of every block. It shows the created date of a bookmark in the bookmark index (1.11): the date of the block that holds the bookmark line. A click in the space beside the column acts as a click in the text next to it.
- Format: `16 okt 08:55` (Dutch month names, 24-hour time). The year is added only when it is not the current year: `3 mrt 2025 14:02`.
- When you split a block by typing a blank line inside it, both parts keep the date of the block. When you join two blocks by deleting the blank line between them, the joined block keeps the date of the upper block.
- Text you paste into a block becomes part of that block and gets no own date. A paste that starts a new block (after a blank line, or on an empty page) dates that block.
- A block without a date (text from before this feature, or text typed into page.md in another app) has no date; a bookmark in it shows its title alone.
- Every way text enters the page gives it a created date: typing, paste, drop, lorem text (1.12), the help text and the welcome text (1.13). A block without a date only comes from a page file edited in another app. Plak removes it at the next startup (1.14).
- In the page file, the date is a comment line directly above the first line of the block: `<!-- 2026-10-16 08:55 -->`, local time. Only a line that matches this exact pattern is a date; any other comment is normal text. You never see the date line in the page.
### 1.7 Images
@@ -62,7 +62,7 @@ Plak is a native macOS notepad with one long page of plain text. It has no files
- **Files**: plak copies each image into `~/Library/Application Support/plak/images/`. Name: `2026-10-16-085512-<4 random hex>.<ext>`. A file keeps its own type (png, jpg, gif, heic, webp). A pasted image without a file (raw image data) is saved as PNG.
- **Page file**: an image is the line `![](images/<name>)`. On read, only a line that is exactly this pattern becomes an image; any other text stays text.
- **Copy**: ⌘C on a selection with an image puts plain text with the `![](images/…)` line on the pasteboard. A paste of that text back into plak shows the image again.
- Plak never deletes an image file. An image you delete keeps its file in `images/` (cleaning up is for later).
- An image you delete keeps its file in `images/` until the next startup. Then plak deletes the image files that no image line of the page uses (1.14).
- Remote images (`https://…`) and browser drags without a real file are not supported in v1.
### 1.8 Code blocks and tables
@@ -141,19 +141,18 @@ Other apps, scripts and Shortcuts add to the page through the `plak://` URL sche
### 1.11 Bookmarks
- A **bookmark** is a line that starts with exactly one `=`, directly followed by a character that is neither a space nor `=`, as `=update on this`. The title is the text after the `=`, without the spaces at its end. `=` alone, `= title` (a space after the `=`), `==twice` and `== Contact ==` are no bookmarks. An `=` inside a line, or after a space, is no bookmark either.
- The `=` stays visible as you typed it. Nothing new is stored: the page file keeps the line as plain text.
- The date of a bookmark is the created date of the block that holds it (1.6), as `4 okt 07:58`. Without a created date the bookmark has only its title.
- Bookmark labels and the bookmark index are in IBM Plex Mono, at 0.75 of the text size (10 pt at 13 pt), in `inkMuted`. The rules are 1 pt lines in `bookmarkRule`.
- Plak picks one of two layouts from the space beside the column:
- **Wide**: the space on each side of the column is at least the widest label `title - date` plus 64 pt (room for its rules), but never less than 160 pt. A label counts for at most 40 characters of the label font (240 pt at 13 pt text), so one long title never keeps the window narrow; a label too long for its room ends in `…`.
- **Narrow**: any less space.
- **Wide**: right of the column, at the height of the first line of the bookmark, a rule starts 8 pt right of the column and runs to the label `title - date`; after the label a rule of 16 pt runs to the right edge of the window.
- **Wide**: the **bookmark index** sits at the top left of the window, 8 pt from the left edge and below the title bar. It holds the last 10 bookmarks of the page (the 10 lowest), one line each, `title - date`, top to bottom in page order. It stays in place while the page scrolls. The pointer over an entry is the hand. A click on an entry puts the caret at the end of that bookmark line and scrolls the line to the vertical middle. A label too long for the side space ends in `…`. When 10 lines do not fit the window height, the top of the index is cut off.
- **Narrow**: there is no bookmark index. On the last line of the bookmark, a rule runs from just after the text to the label with only the date, which ends at the right edge of the column; then a short rule continues past the column when there is room. A bookmark without a date shows nothing, and nothing shows when the line leaves no room for the date.
- The labels and the index follow every change: typing, scrolling, a window resize, ⌘+ / ⌘− and ⌘. / ⌘,.
- While the caret is not on it, a bookmark line shows in bold IBM Plex Mono, in `accent`, 2 pt larger than the page text (15 pt at 13 pt), without its `=`. With the caret on the line it shows as normal page text with the `=`, so it is plain to edit.
- Nothing shows beside the column: no label, no rule, no date.
- The date of a bookmark is the created date of the block that holds it (1.6), as `4 okt 07:58`. It shows only in the bookmark index. Without a created date the bookmark has only its title.
- The bookmark index is in IBM Plex Mono, at 0.75 of the text size (10 pt at 13 pt), in `inkMuted`. An entry turns `accent` while the pointer is over it.
- The **bookmark index** always shows, at every window width, also when the page has no bookmarks. It sits at the top left of the window, 8 pt from the left edge and below the title bar. It holds the last 10 bookmarks of the page (the 10 lowest), one line each, `title - date`, top to bottom in page order. It stays in place while the page scrolls. The pointer over an entry is the hand. A click on an entry puts the caret at the end of that bookmark line and scrolls the line to the vertical middle. A label too long for its room ends in `…`. When the lines do not fit the window height, the top of the index is cut off.
- The last entry of the index is always `end`, below the bookmark entries. `end` is not a bookmark. It turns `accent` under the pointer, as the other entries do. A click on `end` puts the caret at the end of the page and scrolls the end into view, as ⌘↓ does.
- The index needs room left of the column: the widest of the labels and `end`, plus 24 pt, at most 160 pt. The column stays in the centre while the room left of it is enough. When it is less, the column moves to the right just enough to leave that room.
- The bookmark look and the index follow every change: typing, a caret move, scrolling, a window resize, ⌘+ / ⌘− and ⌘. / ⌘,.
### 1.12 Lorem text
- Type `#lorem` at the very start of a line: the moment you type the `m`, those six characters become **lorem text**. Only typing does this; a paste of `#lorem`, or `#lorem` in the page file, stays text. `#lorem` after other text on the line, or after a space, stays text too.
- Lorem text is one sentence of exactly 16 words, a blank line, a paragraph of 3 to 5 sentences, a blank line, and a second paragraph of 3 to 5 sentences. The sentences of a paragraph are joined by spaces.
- Lorem text starts with the line `=lorem`, a block of its own, so the lorem text has a bookmark `lorem` (1.11). Then come a blank line, one sentence of exactly 16 words, a blank line, a paragraph of 3 to 5 sentences, a blank line, and a second paragraph of 3 to 5 sentences. The sentences of a paragraph are joined by spaces.
- The sentences come from `lorem.txt` in the app, one sentence per line, picked at random. One insertion never uses a line twice.
- After the second paragraph come three more blocks, each after a blank line, one item per line:
- 4 Dutch telephone numbers with random digits, mobile and landline mixed: `06-12345678`, `+31 6 12345678`, `020-1234567` or `0546-123456`.
@@ -173,6 +172,16 @@ Other apps, scripts and Shortcuts add to the page through the `plak://` URL sche
- Only Plak Help in the menu bar icon adds the help text, at any time. It appends the help text at the end of the page as new blocks, the same way `plak://append` does (1.10): the `json` code block and the `csv` table become objects, every appended block gets a created date (1.6), and the window shows with the end of the page in the vertical middle. The page keeps everything above it; nothing is replaced.
- The welcome text and the help text are normal page text: you can edit or delete them.
### 1.14 Old blocks
- Each time plak starts, before the page shows, it removes every block whose created date is more than 14 days old, and every block without a created date.
- 14 days is by the calendar: the same clock time 14 days ago. A block of exactly 14 days stays.
- A bookmark goes with its block, as any line does. A code block or table goes or stays whole. The blank lines above a removed block go with it.
- Nothing is archived. A removed block is gone.
- When every block is removed, the page is empty. The welcome text comes only with a missing page file (1.13).
- When a block was removed, plak writes the page file at once. When that write fails, the save error shows (1.4), and plak tries again at the next save.
- Then plak deletes the image files in the image folder that no image line of the page uses. Only image files directly in the folder go; hidden files, links and folders stay.
- Plak skips this image cleanup at the first startup (no page file) and when the write failed, because then the page file does not hold the page.
## 2. Look
- **Paper**: the Kade dark slate look, the same as Helder. Plak is dark only.
@@ -181,11 +190,10 @@ Other apps, scripts and Shortcuts add to the page through the `plak://` URL sche
|---|---|---|
| `paper` | `#101720` | Window and page background |
| `ink` | `#E4E7E6` | Text |
| `inkMuted` | `#6C7783` | Bookmark labels, the bookmark index, `image missing` |
| `accent` | `#E8913A` | The caret |
| `inkMuted` | `#6C7783` | The bookmark index, `image missing` |
| `accent` | `#E8913A` | The caret, a bookmark line without the caret, the bookmark index entry under the pointer |
| `selection` | `#E8913A` at 22% | Selected text |
| `rule` | `#3A424C` | The lines of a table |
| `bookmarkRule` | `#6C7783` | The rules beside a bookmark label |
| `panel` | `#18202B` | The save error banner |
| `codePaper` | `#18202B` | Code block background |
@@ -201,7 +209,7 @@ Other apps, scripts and Shortcuts add to the page through the `plak://` URL sche
| `codeTag` | `#C3A6CE` | XML tags, the PHP open and close tags |
| `codeAttribute` | `#BAC0C0` | XML attribute names, JSON keys |
- **Font**: IBM Plex Mono for the page text, code blocks, tables, bookmark labels and the bookmark index, and IBM Plex Sans for the save error banner. Both are bundled under the SIL Open Font License. When a face does not load, plak uses the macOS system font.
- **Font**: IBM Plex Mono for the page text, code blocks, tables and the bookmark index, IBM Plex Mono Bold for bookmark lines, and IBM Plex Sans for the save error banner. Both are bundled under the SIL Open Font License. When a face does not load, plak uses the macOS system font.
- **Text size** is 13 pt by default, with a 20 pt line (IBM Plex Mono 13/20). Code blocks and tables use the same size.
- No shadows, no borders, no scroll bar unless you scroll.
@@ -211,17 +219,17 @@ SwiftPM package, macOS 14+, Swift 6, AppKit. No dependencies.
| Target | Contents |
|---|---|
| `PlakCore` | `PageFile`: reads the page file text into plain text plus block dates and image lines, and writes it back. Block splitting (blank lines), the date line pattern, the image line pattern, the date formatter. Bookmark finding, fence parsing, paste detection, the `plak://` URL parser, the CSV model, the JSON formatter and the syntax tokenizers. `LoremText`: reads `lorem.txt` (a resource of this target) and picks the lorem text. `help.md` (a resource of this target) and its loader: the help text. The welcome text: the one sentence of the first startup. Pure Swift, no AppKit. |
| `PlakServices` | `PageStore`: reads and writes the page file, the debounced save, the welcome text when the page file is missing. `ImageStore`: copies or writes image files into `images/` and gives back the relative path. |
| `PlakUI` | The window, the page text view, the image attachments, the code block and table attachments and their in-place editors, the bookmark labels and the bookmark index, paste and drop, the theme and the fonts. |
| `Plak` | The executable: the app delegate, the menu, the menu bar icon, the global ⌘N. |
| `PlakCore` | `PageFile`: reads the page file text into plain text plus block dates and image lines, and writes it back. Block splitting (blank lines), the date line pattern, the image line pattern, the date formatter. Bookmark finding, fence parsing, paste detection, the `plak://` URL parser, the CSV model, the JSON formatter and the syntax tokenizers. `LoremText`: reads `lorem.txt` (a resource of this target) and picks the lorem text. `help.md` (a resource of this target) and its loader: the help text. The welcome text: the one sentence of the first startup. `PageFile.pruned(now:timeZone:)`: the page without the blocks older than `PageFile.keptDays` (14) and without undated blocks; `imagePaths`: the paths of all image lines (1.14). Pure Swift, no AppKit. |
| `PlakServices` | `PageStore`: reads and writes the page file, the debounced save, the welcome text when the page file is missing. `PageStore(pruneAt:)` removes the old blocks on read and writes the page file at once when one was removed. `ImageStore`: copies or writes image files into `images/` and gives back the relative path. `ImageStore.removeUnused(keeping:)` deletes the image files that no image line uses (1.14). |
| `PlakUI` | The window, the page text view, the image attachments, the code block and table attachments and their in-place editors, the bookmark look and the bookmark index, paste and drop, the theme and the fonts. |
| `Plak` | The executable: the app delegate, the menu, the menu bar icon, the global ⌘N. `AppDelegate` creates the `PageStore` with `pruneAt: Date()` and then runs the image cleanup (1.14). |
### Page view
- An `NSScrollView` with one editable `NSTextView` for the whole page, the text in the reading column, and a bottom inset of half the visible height. The inset changes when the window changes size.
- An image is an `NSTextAttachment` that knows its relative path.
- A code block or table is an `NSTextAttachment` too. While you edit it, an editor view is placed over the object; when the edit ends, the editor goes away.
- The created date is a custom text attribute on every character of a block. The date of a block is the date on its first character. When a new block has no date, plak stamps it with now. Because the characters carry the date, a split keeps the date for both parts. New typing at the start of a new block must not inherit the date of the block above.
- The text view draws the bookmark labels and rules; they are not views that take clicks. The bookmark index is its own view over the top left of the page, laid out by the page view controller.
- The bookmark look is only on screen; it never reaches the page file. The bookmark index is its own view over the top left of the page, laid out by the page view controller.
### Round trip
- Read the page file, then save it without a change: the file must be the same, byte for byte, except that a trailing newline is always written and CRLF becomes LF.
@@ -266,18 +274,21 @@ scripts/bundle.sh # build/Plak.app, ad-hoc signed (--install copies it
18b. `URLCommand`: `plak://append?text=…` gives the percent-decoded text (a `+` stays a `+`, newlines and unicode kept), without text the empty text; `plak://paste` gives paste; another host or another scheme gives nothing.
18c. Append (1.10): on an empty page the text becomes the page; after a block it comes after a blank line as a new block with its own date line; JSON becomes a fenced `json` code block; after a text that ends with a newline only one more newline is added.
18d. Bookmarks: a line of one `=` directly followed by a title gives a bookmark with the title, trimmed at its end, and the range of its line; `=` alone, `= `, `= title`, `==twice`, `== Contact ==`, an `=` inside a line and an indented `=` give none.
18e. Bookmark layout (1.11): a wide window shows the bookmark index and the `title - date` labels right of the column; a narrow one hides the index and shows the date only, inside the column; 12 bookmarks give an index of the last 10 in page order; a click on an entry puts the caret at the end of that line; the labels and the index use IBM Plex Mono. In a 1700 pt window with a `== … ==` line and a wide table, a render of the page shows the rule, the label and the tail right of the column. One very long title does not keep a window narrow whose side space holds a label of 40 characters.
18f. Lorem text (1.12): `lorem.txt` and `contacts.json` load from the resource bundle, `lorem.txt` with at least 200 lines; with an injected generator the first sentence has exactly 16 words, each paragraph has 3 to 5 sentences, no line shows twice, and the text is 6 blocks with one blank line between each: sentence, paragraph, paragraph, phones, addresses, e-mails. Each contact group has 4 items without duplicates; the phones match a Dutch mobile or landline pattern and hold both kinds; the addresses match `^.+ \d{1,3}[a-z]?, \d{4} [A-Z]{2} .+$` with a house number of 1 to 250 and no `SS`, `SD` or `SA`; the e-mails are lower case ASCII on `example.nl`, `example.com` or `example.org`. The same seed gives the same lorem text.
18g. Typing `#lorem` at the start of a line replaces it with lorem text, keeps the text after it and puts the caret at the end; its 6 blocks get a created date. `a #lorem` and a pasted `#lorem` stay text. One undo brings back `#lorem`.
18e. Bookmark layout (1.11): the bookmark index shows at every window width, also on a page without bookmarks, and then holds only `end`; when the centred room left of the column is less than the index needs (the widest of the labels and `end`), the column moves to the right to make room for it; 12 bookmarks give an index of the last 10 in page order, followed by `end`; a click on an entry puts the caret at the end of that line; a click on `end` puts the caret at the end of the page and scrolls the end into view; the index uses IBM Plex Mono. A bookmark line without the caret is bold IBM Plex Mono in `accent`, 2 pt larger than the page text, with its `=` hidden; with the caret on it, it is normal page text; the page file keeps it as plain text. In a 1700 pt window with a bookmark and a wide table, a render of the page shows nothing right of the column.
18f. Lorem text (1.12): `lorem.txt` and `contacts.json` load from the resource bundle, `lorem.txt` with at least 200 lines; with an injected generator the first sentence has exactly 16 words, each paragraph has 3 to 5 sentences, no line shows twice, and the text is 7 blocks with one blank line between each: `=lorem`, the sentence, paragraph, paragraph, phones, addresses, e-mails. The first line is `=lorem` and gives a bookmark `lorem`. Each contact group has 4 items without duplicates; the phones match a Dutch mobile or landline pattern and hold both kinds; the addresses match `^.+ \d{1,3}[a-z]?, \d{4} [A-Z]{2} .+$` with a house number of 1 to 250 and no `SS`, `SD` or `SA`; the e-mails are lower case ASCII on `example.nl`, `example.com` or `example.org`. The same seed gives the same lorem text.
18g. Typing `#lorem` at the start of a line replaces it with lorem text, keeps the text after it and puts the caret at the end; its 7 blocks, `=lorem` included, get a created date, and the bookmark index shows `lorem`. `a #lorem` and a pasted `#lorem` stay text. One undo brings back `#lorem`.
18h. Help text (1.13): `help.md` loads from the resource bundle. The `json` fence gives a code block, and the `csv` fence gives a table of 11 rows and 2 columns, with `⌘. / ⌘,` as one value. The bookmarks include `welcome to plak` and `shortcuts`. The help text reads and writes back the same (round trip). Welcome text (1.13): it is the one line `Welcome to plak. For the docs, the tricks and the shortcuts, choose Plak Help in the menu bar icon.`, in one block with the injected date.
18i. `PageStore`: a missing page file gives the welcome text, and the first flush writes the date line and the welcome sentence to the page file. An existing empty page file stays empty, and nothing is written.
18j. Old blocks (1.14), with an injected now and time zone: a block of 13 days and a block of exactly 14 days stay; a block of 15 days and a block without a date go. A fenced code block or table goes or stays whole, with its blank lines inside. When every block is old, the page is empty, without the welcome text.
18k. `ImageStore.removeUnused(keeping:)`: an image file that no image line uses is deleted; a used file, a symbolic link and a hidden file stay.
18l. `PageStore(pruneAt:)` writes the page file only when a block was removed; with nothing to remove, nothing is written. A failed write gives the save error, and the next save tries again.
### Manual checks on the running app
19. Launch with a long page: the window shows the end of the text in the vertical middle, with the caret there.
20. Launch with an empty page: the caret is in the vertical middle.
21. Click in the middle of the page and type: the text goes there. Select across two paragraphs and delete: it works as in any text field.
22. Type `# title` and `**bold**`: they show as typed, without styling.
23. Type `=update on this` in a dated block. In a wide window the bookmark index shows at the top left and `update on this - <date>` shows right of the column, with a rule on both sides; a click on the index entry jumps to the line. In a narrow window the index goes and the date shows at the right edge of the column.
23. On an empty page, the bookmark index shows only `end` at the top left. Type `=update on this` in a dated block. The bookmark index shows `update on this - <date>` above `end`, and nothing shows beside the column. Move the caret off the line: it shows in bold orange, a bit larger. Move the caret back: it shows as normal page text. Point at the index entry: it turns orange; a click on it jumps to the line. Scroll up, point at `end`: it turns orange; a click on it puts the caret at the end of the page and scrolls the end into view. Make the window narrow: the index stays and the column moves to the right to make room for it.
24. Paste a screenshot (⇧⌃⌘4, then ⌘V): the image shows at the caret. Backspace after it deletes it; ⌘Z brings it back.
25. Drag an image from Finder into the middle of the page: the caret shows the drop place, and the image lands there.
26. Quit and open again: text, dates and images are back; page.md holds the date lines and the `![](images/…)` lines.
@@ -299,14 +310,14 @@ scripts/bundle.sh # build/Plak.app, ad-hoc signed (--install copies it
42. Edit a code block and a table, then quit and open again: the edits are back, and page.md holds the fenced blocks.
43. Type `https://plak.app`. Hold ⌘ over it: it is underlined and the pointer is the hand; let go of ⌘: the underline goes and the text cursor is back. ⌘-click opens it in the browser; page.md is unchanged.
44. Run `open 'plak://append?text=hello%20world'`, with plak running and with plak quit: the window shows with `hello world` as the last block, in the vertical middle. Copy a screenshot and run `open plak://paste`: the image is the last block.
45. In the bundled app (`scripts/bundle.sh`), type `#lorem` on a new line: lorem text shows, with the caret at its end. ⌘Z brings back `#lorem`.
45. In the bundled app (`scripts/bundle.sh`), type `#lorem` on a new line: lorem text shows, with the caret at its end. It starts with the bookmark `lorem` on a line of its own, followed by a blank line, and the bookmark index shows `lorem`. ⌘Z brings back `#lorem`.
46. Quit plak and delete page.md, then open plak: the page shows only the one welcome sentence. Quit and open again: it is the same page, not a second copy.
47. Choose Plak Help in the menu bar icon: the help text is added at the end of the page, with the table and the code block, and the window shows it in the middle; the text above is unchanged.
48. Quit plak. In page.md, give one block a date line of 20 days ago, and add one block without a date line. Open plak: both blocks are gone, and page.md no longer holds them. Put an image file in `images/` that no image line uses, and open plak again: the file is gone.
## 6. Out of scope for v1
Remembered for later, not built now:
- Cleaning up image files that no text uses any more.
- Remote images and browser drags without a file.
- Drawing with the touch screen or the mouse.
- A diagram editor: lines, arrows, shapes.
@@ -321,7 +332,7 @@ These follow from the answers, but you did not choose them yourself. Change them
- Hiding hides the whole app, not only the window, so that the previous app gets its focus back (1.5).
- The menu bar icon is the SF Symbol `note.text` (1.2).
- The paper colours in section 2.
- Blocks from before the date feature get no date (1.6).
- A block without a date counts as old, and goes at the next startup (1.14).
- A split block keeps its date in both parts; a join keeps the upper date (1.6).
- A paste inside a block gets no own date (1.6).
- While dragging an image, the text caret shows the drop place, not a separate line (1.7).
@@ -332,7 +343,10 @@ These follow from the answers, but you did not choose them yourself. Change them
- Long values in a table are cut off with `…` (1.8).
- ⌥⇧⌘V pastes without code block or table detection (1.8).
- The key map of the table (1.8).
- The wide layout rule of bookmarks: the widest label, counted for at most 40 characters, plus 64 pt, at least 160 pt (1.11).
- In the narrow layout a bookmark without a date shows nothing (1.11).
- The bookmark rule uses the colour of `inkMuted`, so it reads as a light grey hairline (2).
- No labels or rules beside the column; the created date of a bookmark shows only in the bookmark index (1.11).
- A bookmark line shows in bold `accent`, 2 pt larger and without its `=`, only while the caret is not on it, so it is plain to edit (1.11).
- The bookmark index always shows and always ends with `end`, so the column always leaves room for it (1.11).
- The first startup is a missing page file, not an empty one, so a page you emptied yourself stays empty (1.13).
- Blocks older than 14 calendar days go at each startup, without an archive (1.14).
- A page with only old blocks becomes empty, without the welcome text (1.14).
- Plak deletes unused image files only at startup, and only when the page file holds the page (1.14).
+4 -4
View File
@@ -4,10 +4,10 @@
|---|---|---|
| page | All the content of plak: one long, never-ending plain text. There is only one. | document, note, file (in the UI) |
| block | A run of lines without a blank line in it. Blocks exist only to give text a created date. | cell, chunk, section, paragraph (in code) |
| created date | The moment a block was made. Shown as the date of a bookmark in the block. Stored as a date line above the block in the page file. | timestamp, created_at (in the UI) |
| created date | The moment a block was made. Shown as the date of a bookmark in the bookmark index. Stored as a date line above the block in the page file. | timestamp, created_at (in the UI) |
| date line | The line `<!-- 2026-10-16 08:55 -->` above a block in the page file. Never shown in the page. | header, metadata |
| bookmark | A line that starts with one `=` directly followed by a title, as `=update on this`. Shows its title and the created date of its block beside the column. Stored as plain text. | heading, anchor, marker |
| bookmark index | The list of the last 10 bookmarks at the top left of the window, in a wide window. A click on an entry jumps to that bookmark. | table of contents, TOC, sidebar |
| bookmark | A line that starts with one `=` directly followed by a title, as `=update on this`. Shows in bold orange when the caret is not on it; its title and the created date of its block show in the bookmark index. Stored as plain text. | heading, anchor, marker |
| bookmark index | The list of the last 10 bookmarks at the top left of the window, followed by `end`. It always shows. A click on an entry jumps to that bookmark; a click on `end` jumps to the end of the page. | table of contents, TOC, sidebar |
| image | A picture you pasted or dropped. One object in the text; in the page file the line `![](images/<name>)`. | attachment (in the UI), asset |
| image line | The line `![](images/<name>)` in the page file. | image tag, embed |
| code block | A pasted PHP, JSON or XML text. One object in the text, shown with syntax colours and edited in place; in the page file a fenced block. | snippet, code cell |
@@ -18,6 +18,6 @@
| image folder | `~/Library/Application Support/plak/images/`, where plak keeps the image files. | assets, attachments |
| paper | The dark slate background colour of the page. | canvas |
| menu bar icon | The icon of plak in the macOS menu bar, with the menu Show Plak, Hide Plak, Plak Help, Quit Plak. Plak Help adds the help text at the end of the page. Plak has no Dock icon. | status item (in the UI), tray icon |
| lorem text | The filler text that typing `#lorem` at the start of a line puts in the page: one sentence of 16 words and two paragraphs of 3 to 5 sentences, picked from `lorem.txt`, then 4 telephone numbers, 4 addresses and 4 e-mail addresses made up from `contacts.json`. | placeholder text, dummy text, snippet |
| lorem text | The filler text that typing `#lorem` at the start of a line puts in the page: seven blocks. The bookmark line `=lorem` as a block of its own, one sentence of 16 words and two paragraphs of 3 to 5 sentences, picked from `lorem.txt`, then 4 telephone numbers, 4 addresses and 4 e-mail addresses made up from `contacts.json`. | placeholder text, dummy text, snippet |
| welcome text | The one sentence that the page holds at the first startup, when the page file does not exist. It points to Plak Help. | intro page, sample content |
| help text | The introduction to plak and its tricks, from `help.md` in the app. Plak Help adds it at the end of the page. | manual, docs (in the UI), tutorial, onboarding |