Skip to content

kMemo v0.3.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 23:15
· 3 commits to main since this release
v0.3.0
04be7ab

✨ Features

  • Linux desktop app: kMemo now builds and runs on Linux (flutter build linux --release) with the notes, the editor, search, archive/trash, link previews, .docx export and both sync backends. The Android widget section is hidden there, and sharing falls back to the clipboard because the desktop has no share sheet.
  • Portable AppImage for every release: the desktop build is packaged as a single kMemo-<version>-x86_64.AppImage (about 18 MB, no installation and no root), attached to the GitHub release. linux/package-appimage.sh builds the same file locally.
  • Sync merges each note instead of overwriting it: the app now compares what changed on each side before deciding. A note edited only on this device is uploaded, a note edited only on the other device is downloaded, and a note edited on both sides keeps both versions: the local note stays where it is and the remote version arrives as a separate note titled "(Conflict)" (localised). Before, the sync blindly overwrote the other side's copy, so editing the same note on two devices silently lost the work of one of them.
  • Conflict copies never inherit the original's remote file: a copy gets a new identifier, so deleting it can never remove the original note from the server.

🐛 Fixes

  • Timestamps are stored in UTC: notes were saved with a local time and no offset, so a phone in UTC+1 and a server in UTC wrote values that could not be compared. New payloads always carry the offset; notes written by older versions are still read correctly.
  • No more needless re-uploads after a download: a downloaded note was always marked as needing an upload, which created a new version of the same note on every sync (and counted against the drive quota). It is only re-uploaded when the remote copy was written with a different encryption setting, which is what happens after encryption is enabled.
  • Duplicating a note no longer shares its remote file: the copy inherited the original's remote identifier, so deleting the copy deleted the original note from the server.
  • One-time re-read after the upgrade: notes that were already synced are checked once against the server after updating, so an edit made on another device before the upgrade is not lost.
  • A sync that cannot read a note now says so: the notes that cannot be decrypted (missing or wrong passphrase, damaged file) were only written to the log, so a background sync could leave them out of sync without any sign. The home screen now shows a warning with the count and a shortcut to the sync settings; it disappears on the next sync that reads them.
  • A rejected upload is no longer retried: an HTTP 4xx (wrong password, wrong destination folder) cannot succeed on a retry, but the sync repeated every such request three times with a growing delay, which made a misconfigured folder look like an extremely slow sync (about six seconds per note). Only timeouts, rate limits and server errors are retried now.
  • One edit no longer creates several conflict copies: when a note was edited while a slow sync was running, the debounced cycle and the running one could both plan from the same state, both see the same remote version as a conflict and each save its own copy. A sync that starts while another is running now joins it, and the remote version is recorded as handled as soon as the copy is saved, so a failed upload followed by another inspection cannot duplicate it either.
  • Conflict copies follow the app language: with the language set to "system", the copy title used the English suffix even on a Portuguese screen, so the duplicate appeared as "… (Conflict)". The suffix now follows the system language unless a language was picked in Settings.
  • "Sync now" is never skipped: the manual sync now waits for a cycle that is already running and then runs on its own, instead of joining it and losing the forced pass.
  • Downloaded notes no longer duplicate their content: a note pulled from the server kept the blocks already stored and added the downloaded ones next to them, so the body appeared twice after every download (and multiplied on the next ones). The download now replaces the note's block set, which also applies a block deleted on the other device.
  • Cloud export follows the configured backend: the .docx export entry was hardcoded to kDrive, so a WebDAV-only setup still showed "Copy to kDrive" and every attempt failed with "kDrive not configured". The action now uses the backend sync is configured with, in the note menu and in the multi-selection menu, and reads "Copy to the cloud" when no backend is configured (the warning keeps the shortcut to the sync settings).
  • Safer export file names: the note title is sanitised before it becomes a file name, so /, \, : or ? can no longer create a subfolder or escape the notes folder on a WebDAV server.
  • A locked keyring no longer closes the app: the token, password and passphrase are read at startup, and on Linux (desktop keyring) a locked or missing keyring threw before the notes screen existed. The app now opens without sync, and the sync settings explain that the credentials could not be stored instead of failing silently.
  • Pull the note list down to sync: the home list is now a pull-to-refresh surface. It runs the same manual pass as "Sincronizar agora" and reports the result ("4 notes synced", "Everything is up to date", or the error). With no remote storage configured it says so and offers the settings instead of doing nothing.
  • Colour, background and archive changes now reach the other device: they were saved without marking the note as changed and without refreshing its timestamp, so the other device compared the payload with the one it already had, answered "nothing to do" and kept the old look until the note was edited for another reason. They now behave like pinning.
  • Deleting a note from the trash now deletes it everywhere: a permanent deletion used to remove the remote file, which was invisible to the other devices — one of them still had the note, saw "no remote copy" and uploaded it back, so the notes reappeared after the next sync. The deletion is now published as a tombstone in the note's own file, and every device deletes the note instead of reviving it. On kDrive the content stays recoverable in the version history. The tombstone also wins over a device that still has an old copy and uploads it again.
  • An encrypted folder is no longer rewritten in plain text: a device configured without encryption (the default) that pointed at a folder of encrypted notes could read them with the passphrase the app asked for, and then uploaded every one of them back with the encryption off — the notes became plain text on the server. The app now turns encryption on for that backend, using the passphrase that just decrypted the notes, and leaves the remote files as they are. A first sync against an encrypted folder reported twice as many notes as the library held; the count is now the number of distinct notes.
  • The passphrase typed to read a note is kept: it was used for the download and then discarded, so the next upload was refused by the encryption guard — silently, through the automatic sync — and the note never left the device.
  • Development builds are downloadable: every push to the working branch now produces an AppImage and an arm64 APK as workflow artifacts (signed with the release key, so the APK installs over the published app and keeps the notes). They are not releases.
  • Sync log in Settings: a new entry copies what the sync decided (counts, which note was uploaded/downloaded/refused and why, no note content and no credentials). Release builds print no log at all, so this is the only way to diagnose "the note did not reach the other device" from the app itself.
  • A blocked sync is visible: when encryption is on and the passphrase is missing, the home screen says so instead of only logging the refusal.
  • Desktop notes live in the app's data folder: on Linux the database was created as ~/kmemo.sqlite (the documents folder is the home directory when XDG_DOCUMENTS_DIR is unset), which left a stray database next to the user's files. It now goes to ~/.local/share/com.marotoweb.kmemo/ and an existing file is moved there on first start. Android is unchanged.
  • Comfortable line length on wide windows: the note list and the editor are capped at 860 px and centred, instead of stretching a single card across a 1100 px desktop window.

✨ Improvements

  • Sync is the first card in Settings: configuring the remote storage is the action most people open that screen for, so it now sits above appearance, language, editor and widget options.
  • The exported document is explicitly not encrypted: the .docx bypasses the note payload, so it stays a plain file even with encryption enabled; the confirmation message now says so when the backend has encryption on.