Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 00:13
· 188 commits to main since this release
25e7006

Added

  • Sticky notes: «Neue Notiz» in the menu or ⌃⌥K opens a floating note that stays above other windows and can be moved and resized. Notes support bold, italic, bullet lists, checklists (☐ / ☑ marker lines, a click on the box ticks it) and simple tab-aligned tables, in five colours. Content, position, size and colour survive a restart; they are stored as RTF in a new notes table of the encrypted database (schema migration 17). Notes are separate from the clipboard history and are never searched, exported or cleaned up by retention. A stored position that is off every screen is moved onto the first screen, a damaged colour falls back to yellow. The close button hides a note; «Alle Notizen anzeigen» shows hidden ones again. A table is a tab-separated block with tab stops, not a real table object, and a checklist is a text marker line.
  • The palette suggests what to paste next. When it opens without a query, up to three entries stand at the top with the subtitle "Vorschlag: …" and the signals behind them: the entry that followed the one you pasted last in earlier pastes ("Folge", within half an hour of that paste), entries you pasted into the app that is about to receive the paste ("Ziel-App"), entries copied in the running session ("Sitzung") and entries copied in earlier sessions of the same topic ("Thema"). It is a count over your local history, with no model and no network. Pastes from the palette are now logged (entry id, time and target app only, never text; removed together with the entry). The menu item "Nächste Einfügung vorschlagen" (on by default) switches the suggestions and the logging off. ./scripts/eval.sh --suggestions replays fictional pastes and compares the hit rate with a palette that lists the latest copies; with --real it does the same on your own history, read-only and with numbers only (see eval/README.md). Apple Intelligence stays a possible optional follow-up.
  • Copied images are captured. A PNG or TIFF on the clipboard (a screenshot, an image copied from a browser or an editor) becomes a history entry of the type "Bild" with the source app, shown in the history window and the palette with a label such as "Bild PNG, 12 KB (3fa9c1d2)". The bytes are stored in the encrypted database. Copying the same image again counts as a duplicate of the earlier entry. "Maximale Bildgrösse" in the "Erfassung" menu (1, 5, 10, 50 MB; default 10 MB) skips larger images. A copy that also carries text, a URL or files is still stored as text. The secret detector does not look into images, so a screenshot with a password is stored unchanged. Previews, text recognition and pasting images are not part of this change. The database gets a new column (schema version 16).
  • Pasteboards group history entries under a name. The menu item "Pasteboards" creates, renames and deletes them and lists their entries; in the history window the "Pasteboard" button adds the selected entry to a pasteboard or removes it again, also into a new one. Entries in a pasteboard are never removed by retention or by emptying deleted items; deleting a pasteboard only ungroups its entries. Every entry in a pasteboard can have a shortcut (one word of letters, digits, - or _, not case sensitive) that is unique across all pasteboards: setting one that another entry already uses is refused and names the pasteboard that holds it. Typing a shortcut in the palette puts that entry on top, and @Name at the start of the palette query (for example @Work docker) searches that pasteboard only. The history window has a pasteboard filter in its toolbar. Pinned entries now always stand at the top of the palette and say "angeheftet". The database gets two tables (schema version 15); nothing existing changes.
  • Global templates with fields. "Templates verwalten …" in the menu opens a window to create, edit and delete templates (a name and a text). Fields are written in double braces: {{name}} is free text, {{name:date}} a date (also {{date}}), {{name:clipboard}} the clipboard text (also {{clipboard}}) and {{name:choice:a|b|c}} one of the options; a name used twice is asked once. Templates are found in the palette (Tab switches between history, snippets and templates; "Template-Suche öffnen" in the menu opens it directly). Return on a template opens a form with one input per field (Tab moves on, "Abbrechen" or Esc pastes nothing) and pastes the filled text like any palette entry. Anything that is not a valid field, including a field without a value, stays as written. Templates are stored in their own table and never enter the history, the snippets or the secret handling, and the pasted result is not captured as a new copy. A clipboard field stays empty when the clipboard holds a secret. Database migration 14 adds the table.
  • A paste queue fills several fields one after another. The menu item "Warteschlange" shows how many entries are queued and holds "Sequenz-Modus (neue Kopien anhängen)", "Nächsten Eintrag einfügen (⌃⌥N)", "Warteschlange anzeigen …" and "Warteschlange leeren". With the sequence mode on, every copy that is stored is appended to the queue (skipped copies, secrets and ClipKnot's own pastes are not). In the palette ⌘Return puts the selected history or snippet entry at the end of the queue and keeps the palette open; Tab now also cycles to the queue view, where ⌥↑ and ⌥↓ reorder the selected entry, ⌘Delete removes it and Return pastes it. ⌃⌥N pastes the first queued entry into the app in front and moves on; a short note shows how many are left and says when the queue is empty. Like the palette paste it needs the Accessibility permission; without it the entry is only copied, and the queue still moves on so you can paste it by hand. The queue holds up to 100 entries and lives in memory only: it is gone after a restart, and switching the sequence mode off keeps it.
  • ⌥Return in the palette opens the menu "Einfügen mit Filter …" and pastes the selected entry transformed by the chosen filter: Kleinbuchstaben, Grossbuchstaben, Titelschreibweise, Plain Text (strips HTML tags and decodes common entities), URL kodieren, URL dekodieren, Liste als HTML (one <li> per line, bullets and numbers dropped), Absatz-Tag (<p> per block, <br> for single line breaks) and Leerzeichen trimmen. The history entry is not changed. The filters are pure functions that can be chained, which later custom filters will build on.
  • The menu item "Aufbewahrung" ("Für immer" by default, "30 Tage", "90 Tage", "365 Tage") deletes history entries whose last copy is older than the chosen period; the background maintenance does it, together with the entity, band and link data of the entries and sessions that become empty. Pinned and starred entries, entries in the bin (they follow their own 30-day undo window), live parked secrets, entries in a pasteboard and snippets are never deleted. Choosing a period that would delete entries first asks with their number; the question comes once per period, and not at all when nothing would be deleted. The choice and the confirmations are saved, a missing or invalid saved value falls back to "Für immer".
  • «Erscheinungsbild …» in the menu opens a settings window with light / dark / system, accent colour, text size and row density. The palette, history window, snippet explorer and import window follow the choice without a restart, it is saved with the other settings, and «Zurücksetzen» restores the defaults. Every accent colour keeps at least a 3:1 contrast against the window background in light and dark. The accent colour tints only the type icons in the palette and history window, which turn white in the selected row (not selection, links, buttons or the explorer); the system choice uses the macOS accent colour and falls back to a neutral grey when that colour would have less than 3:1 contrast.
  • The menu item "Erfassung" sets how copies are captured: "Leerraum am Rand trimmen" (on by default, as before) switches the trimming of surrounding whitespace off, so a copy is stored and hashed with its leading and trailing spaces and line breaks (line endings are still unified), and "Mindestlänge" (1, 2, 5, 10; default 2) and "Maximallänge" (10 000, 100 000, 1 000 000; default 1 000 000) keep shorter or longer texts out of the history. Lengths count characters after trimming, so an emoji or a letter with a combining mark counts once. A text that is detected as a secret is still handled as a secret when it is outside the length limits. Entries stored earlier are not changed; a missing or invalid saved value falls back to its default.
  • Colors and phone numbers are recognised as their own content types. Hex values (#BF5AF2, #fff, with alpha), rgb()/rgba() and hsl()/hsla() values and copies that carry a color on the pasteboard become "Farbe"; international numbers (+41 79 123 45 67, 0041 …) and national numbers with a leading zero and separators (079 123 45 67, 030/123456) become "Telefonnummer". Both have their own icon and can be filtered by type. Plain digit runs, dates, versions, hashes and commit IDs keep their type, and secrets still win. No database migration is needed; copies stored earlier keep their type.
  • Return in the palette pastes the entry into the app that was in front when the palette opened: the palette closes, that app gets the focus back and receives ⌘V. The paste is not captured as a new copy. This needs the Accessibility permission; without it, or when no other app was in front, the entry is only copied and a short note says so. The menu item "Zwischenablage nach dem Einfügen wiederherstellen" (off by default) puts the previous clipboard content back after the paste, unless something else was copied in the meantime. Concealed or transient content (for example a password copied from a password manager) is never put back; the clipboard is left empty instead, and so is text the secret detector flags (for example an API key) even when its source set no marker.
  • The snippet explorer colours the text of the selected snippet for shell, SQL and YAML (keywords, strings, numbers, comments, operators, variables and flags, keys), in light and dark appearance. Only the colours change; the copied text stays exactly as shown.
  • The snippet explorer checks the syntax of the shown snippet and starts its info line with "✓ Syntax gültig" or "✗ Syntax ungültig:" and a short reason: unclosed quotes and brackets and dangling | or && in shell, unclosed strings and parentheses and UPDATE without SET or INSERT without values in SQL, tab or inconsistent indentation and unclosed brackets in YAML. Constructs the check does not understand (shell functions and case, dialect-specific SQL, Helm or Jinja templates with {{ or {%, …) get no verdict rather than a wrong one. The snippet is never run. "Neu …" shows the same check while you type and still saves an invalid snippet.
  • A snippet can carry a comment. The snippet explorer has a "Kommentar" field under the info line; the comment is saved when you leave the field, trimmed and capped at 2000 characters, and is found by the explorer search and the snippet palette. A secret in a comment is replaced by a placeholder like in the snippet text; a comment that still contains one is refused with "Der Kommentar enthält ein Geheimnis, das nicht entfernt werden konnte." A comment being edited is also saved when the window closes or moves to the background.
  • "Neu …" in the snippet explorer adds a snippet by hand: text, language (guessed from the text until you pick one) and an optional comment. The text is anonymised like every other snippet; one that is empty, too large or still contains a secret after anonymising is refused and the sheet says why. A text that matches the shape of an existing snippet joins it as a variant and the explorer says so, and also when that snippet's existing comment was kept instead of the typed one; a snippet you deleted before comes back.

Changed

  • The app is renamed from Clipkeep to ClipKnot, because the old name is shared by many clipboard managers. The bundle identifier is now li.wuermli.clipknot, the data lives in ~/Library/Application Support/ClipKnot/clipknot.db, the release archive is ClipKnot-<version>.zip and the Homebrew cask is clipknot (it replaces the cask clipkeep).
  • On the first launch ClipKnot copies the history database and its key from Clipkeep, and the preferences kept outside the database (such as whether Safari addresses are read). The parked secrets are carried over the first time ClipKnot uses them; if the old Keychain item cannot be read then (a declined prompt, a locked keychain), ClipKnot changes nothing, drops a newly copied secret instead of parking it, and tries again the next time it needs the parked secrets, at the latest on the next launch. Files imported in Clipkeep can still be removed with "Import löschen …". The old data is not deleted or changed. If Clipkeep is still running, or the old database cannot be opened with its key (for example after moving to a new Mac), the menu says so and nothing is copied.
  • Because of the new bundle identifier, macOS may ask for the Keychain password more than once (the database key and the parked secrets are separate items), and the Accessibility, Automation, notification and launch-at-login approvals have to be granted again.
  • Bitwarden notes that Clipkeep marked are still recognised; new notes carry the ClipKnot marker.
  • Snippets that differ only in their values (paths, numbers, quoted strings, URLs, IP addresses, hashes; SQL literals; YAML scalar values) are merged into one snippet that keeps every concrete text as a variant. ls -la ~/a/plugin/ and ls -la ~/b/prefs/ 2>/dev/null become one snippet; stderr redirections, fd duplications such as 2>&1 and redirections to /dev/null do not count, while the program, flags, pipes and any other redirection (with its target masked) do. Code is never treated as a value: $( … ), backticks, process substitution, the argument of -c, -e, --command, --eval and --exec, the command or script run by sudo, env, bash, python3 and similar wrappers, and the remote command of ssh stay literal, so sudo ./deploy.sh and sudo ./wipe.sh remain separate snippets. The snippet shows the most recently copied variant, counts the copies of all variants, is found by any variant's text, and deleting it keeps every variant from being collected again. Existing snippets are merged once on the first start after the update. The snippet explorer lists one row per merged snippet with a variant menu that selects which text is shown and copied, and the palette row shows the number of variants.