Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load and save percival files in git repos #17

Open
infogulch opened this issue May 1, 2022 · 3 comments
Open

Load and save percival files in git repos #17

infogulch opened this issue May 1, 2022 · 3 comments

Comments

@infogulch
Copy link
Collaborator

I think it would be neat to be able to load, save, edit, and commit percival files directly against a git repo.

Something like isomorphic-git could be useful here:

https://github.com/isomorphic-git/isomorphic-git

It seems there are some potential complications to supporting a git workflow, especially related to CORS.

Thoughts?

@justjake
Copy link

justjake commented May 1, 2022

It'd probably be easier to program directly against the Github API, authenticated using one of the OAuth flows rather than emulate a whole file-system in memory and work with Git's data structures.

@infogulch
Copy link
Collaborator Author

What api enables you to traverse the repo and commit to it? That's what git is for.

@infogulch
Copy link
Collaborator Author

To clarify, my goal with this is would be to add a new way to persist changes made to the document other than exporting a brand new gist every time which is awkward to manage.

Potential follow up features could include: 1. opening other percival documents from the main site (point to a git url), 2. multi-document workflows, where a table defined and exported by one document is imported and used in another, etc.

@infogulch infogulch changed the title Better integration with full git repos Load and save percival files in git repos May 9, 2022
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

No branches or pull requests

2 participants