Files
plak/Sources/PlakCore/Resources/help.md
T

3.9 KiB

=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.

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.

This page is yours. Delete this text whenever you like: Plak Help in the menu bar adds it again 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.

{
  "app": "plak",
  "pages": 1,
  "saves": "while you type"
}

Paste a CSV and it becomes a table, as the one with the shortcuts below. 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 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.

=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. 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; a bookmark shows that date.