Skip to content

Client-side "save to file"-function for code output? #42

Open

Description

@dagbdagb

In the continuation of #36 , what do you think about a 'save output to file' option? I have, for instance, used an LLM to iterate over an SQL schema. Lots of iterations, 18-20 tables. Being able to just click 'save' and be prompted for a file-name sounds kinda nifty.

link to client-side 'save-to-file'-javascript. I am not skilled in javascript, so I cannot evaluate this particular solution. But it appears possible, at least.

Activity

  1. turboderp commented on Mar 26, 2024

    @turboderp
    Member

    I've added a basic save button with the latest commit. But for "browser security reasons" the client doesn't have all that much control over when the browser decides to show file dialogs and when it just dumps files in your download folder. So I'm not sure it's a good enough solution. It's a starting point I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions