Skip to content

Add markdown export with ISO 8601 timestamped filenames#7

Merged
j-almenara-r merged 3 commits intomainfrom
copilot/export-notes-to-markdown
Jan 1, 2026
Merged

Add markdown export with ISO 8601 timestamped filenames#7
j-almenara-r merged 3 commits intomainfrom
copilot/export-notes-to-markdown

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 1, 2026

Enables users to export voice notes to markdown files in device storage with timestamped filenames.

Changes

UI

  • Added export button between notes view and voice input button

Export Logic

  • Exports to Documents/VoiceNotes/voice-notes-{ISO-8601}.md
  • Filename: yyyy-MM-dd'T'HH-mm-ss (filesystem-safe)
  • Content timestamp: yyyy-MM-dd HH:mm:ss (human-readable)
  • Validates notes exist before export
  • Toast feedback for success/error states

Permissions

  • WRITE_EXTERNAL_STORAGE with maxSdkVersion="28" for legacy Android
  • API 29+ uses scoped storage (no explicit permission)

Example Output

# Voice Notes Export

**Exported on:** 2026-01-01 16:30:45

---

[10:30:15] Pick up groceries

[10:35:42] Call dentist tomorrow morning

Implementation Notes

  • ISO 8601 pattern extracted to companion constant
  • Separate timestamp formatting for filename vs content readability
  • Directory created automatically if missing
Original prompt

This section details on the original issue you should resolve

<issue_title>Export notes to a markdown file in device storage</issue_title>
<issue_description>As a user, I'd like to be able to export the notes to a markdown file in the device memory.

  • A default location should be provided by default, with the option to change it to a custom one if desired.
  • The file could be timestamped as well (iso 8601 format)</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 1, 2026 16:18
- Added Export button to UI with proper layout constraints
- Implemented exportNotesToMarkdown() method in MainActivity
- Added ISO 8601 timestamp formatting for filenames
- Files saved to Documents/VoiceNotes directory
- Added necessary permissions for API < 29
- Added string resources for export functionality
- Handles empty notes case with user feedback

Co-authored-by: j-almenara-r <246562873+j-almenara-r@users.noreply.github.com>
- Extract ISO 8601 filename pattern to constant
- Use separate human-readable timestamp for markdown content
- Improve code organization and maintainability

Co-authored-by: j-almenara-r <246562873+j-almenara-r@users.noreply.github.com>
Copilot AI changed the title [WIP] Add functionality to export notes to markdown file Add markdown export with ISO 8601 timestamped filenames Jan 1, 2026
Copilot AI requested a review from j-almenara-r January 1, 2026 16:21
@j-almenara-r j-almenara-r marked this pull request as ready for review January 1, 2026 17:07
@j-almenara-r j-almenara-r merged commit 448060b into main Jan 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export notes to a markdown file in device storage

2 participants