jlewi / foyle

Foyle is a copilot to help developers deploy and operate their applications.
https://foyle.io
Apache License 2.0
106 stars 9 forks source link

Google Drive As A Backend For File Storage #203

Open jlewi opened 2 months ago

jlewi commented 2 months ago

I think it would be useful to use Google Drive as a file backend. I think this would be useful for automatically sync'ing files to shared storage location that it is accessible on multiple devices.

I wonder if we could use Drive to also support things like comments and collaboration?

There's already a vscode extension for Google Drive Integration https://marketplace.visualstudio.com/items?itemName=GustavoASC.google-drive-vscode

It currently doesn't support writing/saving files https://github.com/GustavoASC/google-drive-vscode/issues/48 https://github.com/GustavoASC/google-drive-vscode/issues/44 https://github.com/GustavoASC/google-drive-vscode/issues/42

It also doesn't support vscode.dev / web https://github.com/GustavoASC/google-drive-vscode/issues/24

jlewi commented 2 months ago

A couple links about Markdown Support In Google Docs. Google Docs supports importing/exporting as markdown https://workspaceupdates.googleblog.com/2024/07/import-and-export-markdown-in-google-docs.html

However, when I tried it on Business Starter code blocks were not preserved. Probably because code blocks are not available in starter https://workspaceupdates.googleblog.com/2022/12/format-display-code-google-docs.html

You would only need to import/export as a Google Doc if you wanted to be able to collaborate on the markdown from within the Google Docs API but if you don't need/want that. You can just store as opaque blobs in Drive.

jlewi commented 1 month ago

See the comments in this thread about links to different filesystems. https://github.com/stateful/runme/issues/616#issuecomment-2351090711