From 25dc0afaf802866ae50ded3ff199fa5f9d040a61 Mon Sep 17 00:00:00 2001 From: Jonathan van Rij Date: Wed, 25 Nov 2026 07:20:06 +0100 Subject: [PATCH] improves the readme and help text --- .build/.lock | 2 +- .../debug/Plak_PlakCore.bundle/help.md | 11 +- .../release/Plak_PlakCore.bundle/help.md | 11 +- .build/build.db | Bin 229376 -> 229376 bytes README.md | 96 ++++++++++++++++++ Sources/PlakCore/Resources/help.md | 11 +- build/Plak.app/Contents/MacOS/Plak | Bin 968272 -> 968272 bytes .../Resources/Plak_PlakCore.bundle/help.md | 11 +- .../Contents/_CodeSignature/CodeResources | 4 +- 9 files changed, 123 insertions(+), 23 deletions(-) diff --git a/.build/.lock b/.build/.lock index c5594a6..31b46b8 100644 --- a/.build/.lock +++ b/.build/.lock @@ -1 +1 @@ -41746 \ No newline at end of file +13315 \ No newline at end of file diff --git a/.build/arm64-apple-macosx/debug/Plak_PlakCore.bundle/help.md b/.build/arm64-apple-macosx/debug/Plak_PlakCore.bundle/help.md index 8c30421..029172f 100644 --- a/.build/arm64-apple-macosx/debug/Plak_PlakCore.bundle/help.md +++ b/.build/arm64-apple-macosx/debug/Plak_PlakCore.bundle/help.md @@ -1,5 +1,5 @@ =welcome to plak -Plak is one long page to paste into and copy from, on the fly. Text, Markdown, a screenshot, a piece of code, a CSV from a spreadsheet: put it here, and take it out again when you need it. There is nothing to open and nothing to save. Plak keeps everything and saves while you type. +Plak is one long page to paste into and copy from, on the fly. Text, Markdown, a screenshot, a piece of code, a CSV from a spreadsheet: put it here, and take it out again when you need it. There is nothing to open and nothing to save. Plak saves while you type and keeps everything of the last 14 days. Type or paste at the bottom. The end of the page always sits in the middle of the window, so you can start at once. Markdown stays as you type it; plak shows it as plain text, so you copy out exactly what you put in. @@ -42,9 +42,9 @@ Esc or ⌘W,hide plak ``` =bookmarks -A bookmark marks a place on the page, so you can find it again. Type an = at the very start of a line, directly followed by a title, as =meeting notes or =todo. No space after the =, and only one =. The line stays as you typed it, and plak shows its title and the date of its block beside the text. -Plak builds an index from the bookmarks. In a wide window, the last 10 bookmarks of the page are listed at the top left. The index stays in place while you scroll; click an entry and plak jumps to that bookmark. In a narrow window there is no index, and a bookmark shows only its date. -Every title on this page is a bookmark. Make the window wide and look at the top left: there is the index of this page. +A bookmark marks a place on the page, so you can find it again. Type an = at the very start of a line, directly followed by a title, as =meeting notes or =todo. No space after the =, and only one =. The line shows in bold orange; put the caret on it and it shows as you typed it. +Plak builds an index from the bookmarks. The last 10 bookmarks of the page are always listed at the top left, each with its title and the date of its block. The index stays in place while you scroll; click an entry and plak jumps to that bookmark. Click end, the last entry, and plak jumps to the end of the page. +Every title in this help text is a bookmark. Look at the top left: there is the index. =from other apps Other apps, scripts and Shortcuts add to the page with a plak:// address. What they send lands at the end of the page as a new block, and plak shows it. PHP, JSON and XML become a code block and a CSV becomes a table, as with ⌘V. @@ -59,4 +59,5 @@ Type #lorem at the start of a line and it turns into filler text: a sentence, tw A web or mail address is a link, as https://www.blijnder.nl. Hold ⌘ and click it to open it. =where it lives -The page is one plain text file: ~/Library/Application Support/plak/page.md. Images go in the images folder next to it. Each block remembers when you made it; a bookmark shows that date. +The page is one plain text file: ~/Library/Application Support/plak/page.md. Images go in the images folder next to it. Each block remembers when you made it; the index shows that date for a bookmark. +Each time plak starts, it removes every block that is more than 14 days old, every block without a date, and the images that the page no longer uses. A removed block is gone for good, so keep elsewhere what you need longer. diff --git a/.build/arm64-apple-macosx/release/Plak_PlakCore.bundle/help.md b/.build/arm64-apple-macosx/release/Plak_PlakCore.bundle/help.md index 8c30421..029172f 100644 --- a/.build/arm64-apple-macosx/release/Plak_PlakCore.bundle/help.md +++ b/.build/arm64-apple-macosx/release/Plak_PlakCore.bundle/help.md @@ -1,5 +1,5 @@ =welcome to plak -Plak is one long page to paste into and copy from, on the fly. Text, Markdown, a screenshot, a piece of code, a CSV from a spreadsheet: put it here, and take it out again when you need it. There is nothing to open and nothing to save. Plak keeps everything and saves while you type. +Plak is one long page to paste into and copy from, on the fly. Text, Markdown, a screenshot, a piece of code, a CSV from a spreadsheet: put it here, and take it out again when you need it. There is nothing to open and nothing to save. Plak saves while you type and keeps everything of the last 14 days. Type or paste at the bottom. The end of the page always sits in the middle of the window, so you can start at once. Markdown stays as you type it; plak shows it as plain text, so you copy out exactly what you put in. @@ -42,9 +42,9 @@ Esc or ⌘W,hide plak ``` =bookmarks -A bookmark marks a place on the page, so you can find it again. Type an = at the very start of a line, directly followed by a title, as =meeting notes or =todo. No space after the =, and only one =. The line stays as you typed it, and plak shows its title and the date of its block beside the text. -Plak builds an index from the bookmarks. In a wide window, the last 10 bookmarks of the page are listed at the top left. The index stays in place while you scroll; click an entry and plak jumps to that bookmark. In a narrow window there is no index, and a bookmark shows only its date. -Every title on this page is a bookmark. Make the window wide and look at the top left: there is the index of this page. +A bookmark marks a place on the page, so you can find it again. Type an = at the very start of a line, directly followed by a title, as =meeting notes or =todo. No space after the =, and only one =. The line shows in bold orange; put the caret on it and it shows as you typed it. +Plak builds an index from the bookmarks. The last 10 bookmarks of the page are always listed at the top left, each with its title and the date of its block. The index stays in place while you scroll; click an entry and plak jumps to that bookmark. Click end, the last entry, and plak jumps to the end of the page. +Every title in this help text is a bookmark. Look at the top left: there is the index. =from other apps Other apps, scripts and Shortcuts add to the page with a plak:// address. What they send lands at the end of the page as a new block, and plak shows it. PHP, JSON and XML become a code block and a CSV becomes a table, as with ⌘V. @@ -59,4 +59,5 @@ Type #lorem at the start of a line and it turns into filler text: a sentence, tw A web or mail address is a link, as https://www.blijnder.nl. Hold ⌘ and click it to open it. =where it lives -The page is one plain text file: ~/Library/Application Support/plak/page.md. Images go in the images folder next to it. Each block remembers when you made it; a bookmark shows that date. +The page is one plain text file: ~/Library/Application Support/plak/page.md. Images go in the images folder next to it. Each block remembers when you made it; the index shows that date for a bookmark. +Each time plak starts, it removes every block that is more than 14 days old, every block without a date, and the images that the page no longer uses. A removed block is gone for good, so keep elsewhere what you need longer. diff --git a/.build/build.db b/.build/build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lG+l$FOg1B$llsewl7{ zl6pNXounpkxCD=$M=XBC_BzrX@!p<-Tv=Yg7d*(TVsL0Caaa(VL-DLMSa`2p{& zMspFLX1|=!=z*ThoL4ZyfGpL}upBvMBgkye`P%R+^bw$BapN&JNLl)|vX+Hh%&hkup; diff --git a/README.md b/README.md index e69de29..8a7a089 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,96 @@ +``` +██████╗ ██╗ █████╗ ██╗ ██╗ +██╔══██╗██║ ██╔══██╗██║ ██╔╝ +██████╔╝██║ ███████║█████╔╝ +██╔═══╝ ██║ ██╔══██║██╔═██╗ +██║ ███████╗██║ ██║██║ ██╗ +╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ +``` + +# plak + +Plak is one long page to paste into and copy from, on the fly. Text, Markdown, a screenshot, a piece of code, a CSV from a spreadsheet: put it here, and take it out again when you need it. There is nothing to open and nothing to save. Plak saves while you type and keeps everything of the last 14 days. + +Type or paste at the bottom. The end of the page always sits in the middle of the window, so you can start at once. Markdown stays as you type it; plak shows it as plain text, so you copy out exactly what you put in. + +Plak starts with a welcome text. Delete it whenever you like: Plak Help in the menu bar adds the help text at the end of the page. + +## Open and hide + +`⌘N` shows plak from any app, on the desktop you are on. It also pops up when an app is in fullscreen: plak shows over it, so you never have to leave that app first. Press `⌘N` again, or `Esc`, and you are back in the app you came from, with its caret ready. `⌘W` hides plak too. + +Plak lives in the menu bar, not in the Dock. Its menu has Show Plak, Hide Plak, Plak Help and Quit Plak. + +## Images + +Paste a screenshot or a copied image with `⌘V`, or drag image files from Finder onto the page. The caret shows where the image will land, and each image goes on its own line. Backspace deletes an image, `⌘Z` brings it back. Copy an image with the text around it, and a paste back into plak gives the image again. + +## Code and tables + +Paste code and plak turns it into a code block by itself: PHP, JSON and XML are recognised the moment you paste them, and show with syntax colours. JSON on one line is made readable. Click a code block to edit it in place; `Esc` ends the edit. + +```json +{ + "app": "plak", + "pages": 1, + "saves": "while you type" +} +``` + +Paste a CSV and it becomes a table. Click a cell and move with the arrows or `Tab`. Type to replace a value, `Enter` to edit it. `Enter` on the last row adds a row, `Tab` on the last column adds a column. `⌘⌫` deletes a row, `⌥⌘⌫` deletes a column. + +Want the text, not the object? Paste with `⌥⇧⌘V`. + +## Shortcuts + +| Keys | Action | +| --- | --- | +| `⌘N` | show or hide plak | +| `Esc` or `⌘W` | hide plak | +| `⌘V` | paste text / image / code / CSV | +| `⌥⇧⌘V` | paste as plain text | +| `⌘Z` / `⇧⌘Z` | undo / redo | +| `⌘↓` / `⌘↑` | end / start of the page | +| `⌘+` / `⌘−` / `⌘0` | text bigger / smaller / default | +| `⌘.` / `⌘,` | column wider / narrower | +| `⌘`-click | open a link | +| `⌘Q` | quit plak | + +## Bookmarks + +A bookmark marks a place on the page, so you can find it again. Type an `=` at the very start of a line, directly followed by a title, as `=meeting notes` or `=todo`. No space after the `=`, and only one `=`. The line shows in bold orange; put the caret on it and it shows as you typed it. + +Plak builds an index from the bookmarks. The last 10 bookmarks of the page are always listed at the top left, each with its title and the date of its block. The index stays in place while you scroll; click an entry and plak jumps to that bookmark. Click `end`, the last entry, and plak jumps to the end of the page. + +## From other apps + +Other apps, scripts and Shortcuts add to the page with a `plak://` address. What they send lands at the end of the page as a new block, and plak shows it. PHP, JSON and XML become a code block and a CSV becomes a table, as with `⌘V`. + +```bash +open 'plak://append?text=hello%20world' +open 'plak://paste' +``` + +The first adds the text. The second adds what is on the clipboard: text, an image, or a CSV that turns into a table. + +## Filler text + +Type `#lorem` at the start of a line and it turns into filler text: a sentence, two paragraphs, and made-up telephone numbers, addresses and e-mail addresses. `⌘Z` brings back `#lorem`. + +## Links + +A web or mail address is a link, as https://www.blijnder.nl. Hold `⌘` and click it to open it. + +## Where it lives + +The page is one plain text file: `~/Library/Application Support/plak/page.md`. Images go in the `images` folder next to it. Each block remembers when you made it; the index shows that date for a bookmark. + +Each time plak starts, it removes every block that is more than 14 days old, every block without a date, and the images that the page no longer uses. A removed block is gone for good, so keep elsewhere what you need longer. + +## Local development + +```bash +scripts/run.sh +scripts/test.sh +scripts/bundle.sh --install +``` diff --git a/Sources/PlakCore/Resources/help.md b/Sources/PlakCore/Resources/help.md index 8c30421..029172f 100644 --- a/Sources/PlakCore/Resources/help.md +++ b/Sources/PlakCore/Resources/help.md @@ -1,5 +1,5 @@ =welcome to plak -Plak is one long page to paste into and copy from, on the fly. Text, Markdown, a screenshot, a piece of code, a CSV from a spreadsheet: put it here, and take it out again when you need it. There is nothing to open and nothing to save. Plak keeps everything and saves while you type. +Plak is one long page to paste into and copy from, on the fly. Text, Markdown, a screenshot, a piece of code, a CSV from a spreadsheet: put it here, and take it out again when you need it. There is nothing to open and nothing to save. Plak saves while you type and keeps everything of the last 14 days. Type or paste at the bottom. The end of the page always sits in the middle of the window, so you can start at once. Markdown stays as you type it; plak shows it as plain text, so you copy out exactly what you put in. @@ -42,9 +42,9 @@ Esc or ⌘W,hide plak ``` =bookmarks -A bookmark marks a place on the page, so you can find it again. Type an = at the very start of a line, directly followed by a title, as =meeting notes or =todo. No space after the =, and only one =. The line stays as you typed it, and plak shows its title and the date of its block beside the text. -Plak builds an index from the bookmarks. In a wide window, the last 10 bookmarks of the page are listed at the top left. The index stays in place while you scroll; click an entry and plak jumps to that bookmark. In a narrow window there is no index, and a bookmark shows only its date. -Every title on this page is a bookmark. Make the window wide and look at the top left: there is the index of this page. +A bookmark marks a place on the page, so you can find it again. Type an = at the very start of a line, directly followed by a title, as =meeting notes or =todo. No space after the =, and only one =. The line shows in bold orange; put the caret on it and it shows as you typed it. +Plak builds an index from the bookmarks. The last 10 bookmarks of the page are always listed at the top left, each with its title and the date of its block. The index stays in place while you scroll; click an entry and plak jumps to that bookmark. Click end, the last entry, and plak jumps to the end of the page. +Every title in this help text is a bookmark. Look at the top left: there is the index. =from other apps Other apps, scripts and Shortcuts add to the page with a plak:// address. What they send lands at the end of the page as a new block, and plak shows it. PHP, JSON and XML become a code block and a CSV becomes a table, as with ⌘V. @@ -59,4 +59,5 @@ Type #lorem at the start of a line and it turns into filler text: a sentence, tw A web or mail address is a link, as https://www.blijnder.nl. Hold ⌘ and click it to open it. =where it lives -The page is one plain text file: ~/Library/Application Support/plak/page.md. Images go in the images folder next to it. Each block remembers when you made it; a bookmark shows that date. +The page is one plain text file: ~/Library/Application Support/plak/page.md. Images go in the images folder next to it. Each block remembers when you made it; the index shows that date for a bookmark. +Each time plak starts, it removes every block that is more than 14 days old, every block without a date, and the images that the page no longer uses. A removed block is gone for good, so keep elsewhere what you need longer. diff --git a/build/Plak.app/Contents/MacOS/Plak b/build/Plak.app/Contents/MacOS/Plak index a5df86a66147cccb21bf5569400985e94433980b..a78efb7fcd1b1ba3c76d357944e4dc4178de92f6 100755 GIT binary patch delta 76 zcmV-S0JHzlj62YbJAi}%gaU*Egam{Iga(8Mgb0KQgbIWUgbaiYv<^LZAjTTaZvyv7 i;+7F!tCn0$ykgPy(d}_pOYPrOb-cZ3&9_~64)aZOIw4d5 delta 76 zcmV-S0JHzlj62YbJAi}%gaU*Egam{Iga(8Mgb0KQgbIWUgbaiYv<^LZASb*g38b|l iD2SH7?nYaQHhh-|8-mbYDa4)aYVgdQ#c diff --git a/build/Plak.app/Contents/Resources/Plak_PlakCore.bundle/help.md b/build/Plak.app/Contents/Resources/Plak_PlakCore.bundle/help.md index 8c30421..029172f 100644 --- a/build/Plak.app/Contents/Resources/Plak_PlakCore.bundle/help.md +++ b/build/Plak.app/Contents/Resources/Plak_PlakCore.bundle/help.md @@ -1,5 +1,5 @@ =welcome to plak -Plak is one long page to paste into and copy from, on the fly. Text, Markdown, a screenshot, a piece of code, a CSV from a spreadsheet: put it here, and take it out again when you need it. There is nothing to open and nothing to save. Plak keeps everything and saves while you type. +Plak is one long page to paste into and copy from, on the fly. Text, Markdown, a screenshot, a piece of code, a CSV from a spreadsheet: put it here, and take it out again when you need it. There is nothing to open and nothing to save. Plak saves while you type and keeps everything of the last 14 days. Type or paste at the bottom. The end of the page always sits in the middle of the window, so you can start at once. Markdown stays as you type it; plak shows it as plain text, so you copy out exactly what you put in. @@ -42,9 +42,9 @@ Esc or ⌘W,hide plak ``` =bookmarks -A bookmark marks a place on the page, so you can find it again. Type an = at the very start of a line, directly followed by a title, as =meeting notes or =todo. No space after the =, and only one =. The line stays as you typed it, and plak shows its title and the date of its block beside the text. -Plak builds an index from the bookmarks. In a wide window, the last 10 bookmarks of the page are listed at the top left. The index stays in place while you scroll; click an entry and plak jumps to that bookmark. In a narrow window there is no index, and a bookmark shows only its date. -Every title on this page is a bookmark. Make the window wide and look at the top left: there is the index of this page. +A bookmark marks a place on the page, so you can find it again. Type an = at the very start of a line, directly followed by a title, as =meeting notes or =todo. No space after the =, and only one =. The line shows in bold orange; put the caret on it and it shows as you typed it. +Plak builds an index from the bookmarks. The last 10 bookmarks of the page are always listed at the top left, each with its title and the date of its block. The index stays in place while you scroll; click an entry and plak jumps to that bookmark. Click end, the last entry, and plak jumps to the end of the page. +Every title in this help text is a bookmark. Look at the top left: there is the index. =from other apps Other apps, scripts and Shortcuts add to the page with a plak:// address. What they send lands at the end of the page as a new block, and plak shows it. PHP, JSON and XML become a code block and a CSV becomes a table, as with ⌘V. @@ -59,4 +59,5 @@ Type #lorem at the start of a line and it turns into filler text: a sentence, tw A web or mail address is a link, as https://www.blijnder.nl. Hold ⌘ and click it to open it. =where it lives -The page is one plain text file: ~/Library/Application Support/plak/page.md. Images go in the images folder next to it. Each block remembers when you made it; a bookmark shows that date. +The page is one plain text file: ~/Library/Application Support/plak/page.md. Images go in the images folder next to it. Each block remembers when you made it; the index shows that date for a bookmark. +Each time plak starts, it removes every block that is more than 14 days old, every block without a date, and the images that the page no longer uses. A removed block is gone for good, so keep elsewhere what you need longer. diff --git a/build/Plak.app/Contents/_CodeSignature/CodeResources b/build/Plak.app/Contents/_CodeSignature/CodeResources index ac610d6..e4a3098 100644 --- a/build/Plak.app/Contents/_CodeSignature/CodeResources +++ b/build/Plak.app/Contents/_CodeSignature/CodeResources @@ -10,7 +10,7 @@ Resources/Plak_PlakCore.bundle/help.md - Tnx9xI/ujjBjAUpxdRDik5hmcQM= + Rw51DH5UamlFghhy/gJ71IHqt54= Resources/Plak_PlakCore.bundle/lorem.txt @@ -74,7 +74,7 @@ hash2 - FXUi0+Asv2QW/VZphV2PTwF9rYOLTeP8ocTai8wHXKA= + fQ9uDIK7A6QVpEcorfVljKWPUAcaaLL2cYvWq7R+9JI= Resources/Plak_PlakCore.bundle/lorem.txt