Repository navigation
Releases
Releases · dlsdgj/obsidian-lan-sync
0.1.5
Fixed
- Conflict callout titles not fully translated — Remote callout titles now always use the dynamically translated Desktop instead of extracting the untranslated device name from the file. Local callout titles infer the device type from the stored name and translate accordingly.
0.1.4
Fixed
- Device list not refreshing in settings — The authorized device list now re-renders every 5 seconds, so online/offline status updates automatically when a phone disconnects.
- Device name showing Chinese under English UI — Device names are now dynamically translated based on deviceType instead of using the localized string captured at pairing time. Legacy devices without deviceType are inferred from the stored name.
0.1.3
Added
- Manual conflict merge UI — A new modal lets you resolve conflicts by editing a merged-result text field, with side-by-side previews of the desktop and device versions, quick buttons (keep desktop / keep device / keep both), and per-conflict navigation with apply all support.
Fixed
- Three-way merge silently degrading to LWW — rememberBase() failed to create the base/ directory before writing blob files, so all merges fell back to last-write-wins, causing device-side edits to be lost.
- Desktop showing green status dot with no device connected — peerSeenAt was initialized to Date.now() on boot; now initialized to 0 so the dot correctly shows yellow from start. Offline threshold reduced from 120s to 45s.
- Device online/offline status in settings — Authorized device list now shows online/offline indicator with last-seen timestamp.
0.1.2
0.1.1
Added
- Desktop floating status dot — Right-click the status-bar dot for a menu with sync now, pause/resume, "show as floating dot" and settings. The floating dot can be dragged anywhere, remembers its position across restarts, and offers the same menu on right-click so it can be docked back to the status bar.
- Bi-directional plugin and theme sync — Plugin files, themes and CSS snippets now sync in both directions. The scope is limited to
main.js,manifest.json,styles.css, themes andsnippets/*.css, so runtime files such ashighlight-db.jsonno longer trigger endless "reload to apply" notices. - Blacklist sync scope — The sync scope is now a blacklist with an editable rule list, pre-filled with the previously excluded paths; the per-file size limit was removed.
- Inline conflict view — Conflicting paragraphs are shown in place as colored callouts marked with the source device and time, plus commands to keep the desktop or the phone version. Losing versions are kept in the plugin
history/folder. - Status activity indicator — The dot pulses while files are being written, and also on the side that serves a file to the other device. On mobile the dot is a small draggable floating point with a long-press menu.
- Latency logging — End-to-end per-file timing is written to the debug log (
[耗时]lines) to measure the real sync delay.
Changed
- Conflicts are merged, not copied — The desktop now performs a three-way merge against a base-content store and writes the result back to the original note; no more
xxx.conflict-<device>-<time>.mdfiles cluttering folders. - Settings page redesign — Status card, metric tiles, busy-aware buttons and rule chips replace the old form; the enable toggle starts and stops sync live without restarting Obsidian, and "starting…" is only shown while sync is actually enabled.
- Status bar — Shows only a colored dot and the file count.
Fixed
- Synced text disappearing — A pull no longer records a new hash until the file on disk really contains it; if the write does not land, the index entry is dropped and the file is pulled again instead of pushing stale content back to the other side.
- Scroll jump and flicker during sync — Remote text is applied to the open editor with a minimal line-level diff instead of
setValue, reading-mode leaves are skipped in favour ofvault.process, and the scroll position is restored synchronously rather than with several delayed timers. - Reading view not refreshing — Preview leaves are re-rendered after a remote write, so newly synced trailing text appears without switching notes.
- Mobile edits blocked after a pull — The anti-clobber guard now only skips a push when the local content still equals the last pulled version, so new edits sync immediately.
- Reload prompt spam — Narrowing the plugin sync scope stopped 200 KB+ runtime JSON files from being rewritten and re-triggering the notice every minute.
- Mobile device count always 0 — The client reports one paired desktop instead of reading the desktop-only device map.
- Settings toggle shadow and duplicated "sync scope" title — Removed.
0.1.0
LAN Sync 0.1.0 - first public release.
Zero-input pairing, automatic LAN discovery, persistent incremental index, token authorization, bilingual UI (follows the Obsidian display language) and a documented sync scope.
See README.md for installation and CHANGELOG.md for the full list.