Skip to content

File Overwrite #43

@imrofayel

Description

@imrofayel

Currently, when editing a note in fylepad and clicking Save, the app downloads the file again instead of modifying the original file. This behavior works for the web version, but it's not ideal for the desktop version.

Problem

On the desktop app, when I open a note and make changes, clicking Save prompts a file download. This is not the expected behavior for a native desktop experience (like how Notepad or other editors work). This is what export thing should do.

This breaks the workflow, as users must manually overwrite or manage duplicate files.

Expected Behavior

On the desktop app, saving a file should overwrite the original file directly, without triggering a download. On the web version, current download behavior can remain as fallback due to browser limitations.

Suggested Solution

Use the file system APIs to write changes directly to the existing file path. Refer to this example for reference: Inkless - A simple notepad

Let me know if you want help implementing this feature or want me to open a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions