Skip to content

feat(edit): edit, save and create Markdown files - #12

Merged
cocodedk merged 2 commits into
mainfrom
feat/edit
Sep 25, 2026
Merged

cocodedk merged 2 commits into
mainfrom
feat/edit

Conversation

@cocodedk

Copy link
Copy Markdown
Owner
  • Edit: shows the source in a monospace editor where each paragraph takes its own direction.
  • Save writes over the open file (mode wt, so nothing old is left past the new end). A file that will not take a write, shared text and a new document go through Save as instead (CREATE_DOCUMENT, text/markdown), and the chosen file becomes the open one.
  • New on the empty screen starts a blank document. Done with unsaved changes asks before discarding them. The app also answers Edit with (ACTION_EDIT).
  • The edited text is kept only in the ViewModel, never in saved state. Still no permissions.
  • 14 new JVM tests (EditTest, EditorScreenTest). Checked on an emulator against the real Downloads provider: saving in place truncated the file to the new text, and Save as created Untitled.md.
  • The site, README, fastlane text and llms.txt now describe editing.

🤖 Generated with Claude Code

https://claude.ai/code/session_019fSTsNv6mvnZFf1o5pYahC

Edit swaps the rendered page for the source. Save writes over the open
file ("wt", so nothing old is left past the new end). A file that will
not take a write, shared text and a new document go through the
system's Save as instead, and the chosen file then becomes the open
one. New on the empty screen starts a blank document. Done with
unsaved changes asks before discarding them. The app also answers
"Edit with" (ACTION_EDIT). The edited text lives only in the
ViewModel, so a 2 MB file never reaches saved state. Still no
permissions. The site, README, fastlane text and llms.txt describe
editing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019fSTsNv6mvnZFf1o5pYahC
@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 23 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 534671f9-38cb-43ed-b096-641fa960009c

📥 Commits

Reviewing files that changed from the base of the PR and between df72b07 and e54ec52.

📒 Files selected for processing (17)
  • README.md
  • app/src/main/AndroidManifest.xml
  • app/src/main/java/dk/cocode/markdown/ui/DocumentWriter.kt
  • app/src/main/java/dk/cocode/markdown/ui/EditorScreen.kt
  • app/src/main/java/dk/cocode/markdown/ui/MainActivity.kt
  • app/src/main/java/dk/cocode/markdown/ui/ViewerScreen.kt
  • app/src/main/java/dk/cocode/markdown/ui/ViewerViewModel.kt
  • app/src/main/res/values/strings.xml
  • app/src/test/java/dk/cocode/markdown/ui/EditTest.kt
  • app/src/test/java/dk/cocode/markdown/ui/EditorScreenTest.kt
  • fastlane/metadata/android/en-US/changelogs/1.txt
  • fastlane/metadata/android/en-US/full_description.txt
  • fastlane/metadata/android/en-US/short_description.txt
  • llms.txt
  • scripts/setup-repo.sh
  • website/fa/index.html
  • website/index.html

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…where

Edge to edge (targetSdk 36) the window no longer shrinks for the
keyboard, so the editor pads for it itself. The store text, first
changelog and repository description now mention editing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019fSTsNv6mvnZFf1o5pYahC
@cocodedk
cocodedk merged commit 20b6829 into main Sep 25, 2026
3 checks passed
@cocodedk
cocodedk deleted the feat/edit branch September 25, 2026 06:49
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.

1 participant