Repository navigation
v2.17.0 - File import & sync
A release that adds opening .md and text files from a file manager or importing them as notes via share (#139), along with fixes for duplicate notes and unrecognized tags in folder sync and for search and tag list bugs (#140, #138).
Added
- Open and share import external Markdown and text files (#139). Tapping a
.mdor.txtfile in a file manager (ACTION_VIEW) or sharing a file from another app (ACTION_SENDfile stream) imports it into Markleaf as a new note. If the body has no title line, the filename becomes the note title. Previously only plain text sharing was supported.
Fixed
- Duplicate search results (#140). The
JOINin full-text search (searchNotesFts) listed a note once per posting when the FTS index held several postings for it; changing to arowid IN (...)form returns each note exactly once. - Leftover zero-count tags (#138). Tags removed from every note remained in the tag list with a count of 0; adding
HAVING COUNT(notes.id) > 0toobserveTagsWithCountsshows only tags with at least one active note. - Duplicate notes in folder sync (#140 root cause).
.mdfiles created by other apps, without a frontmattermarkleaf_id, were recreated as new notes on every sync; the id is now written to the file on first import, preserving existing frontmatter keys, so later syncs match and update instead. Duplicates already created are not merged automatically, so a single cleanup is enough to stop them recurring. - Unrecognized tags and links in sync-imported notes (#138 related).
#tagsand[[wikilinks]]in notes imported from a folder were not indexed until the note was saved again in the editor; the three sync paths were unified intoNoteImporterso they are indexed at import time.
Tests
- Added unit tests for hiding zero-count tags, returning a single search result for duplicate FTS postings, frontmatter encoding that preserves unknown keys, and tag and wikilink indexing on import.