joshuakto / fit

File gIT (FIT) to sync your files across mobile and desktop devices using GitHub.
https://obsidian.md/plugins?id=fit
MIT License
35 stars 7 forks source link

Support for other git based version control tools #4

Open joshuakto opened 3 months ago

joshuakto commented 3 months ago

I think the best way to add support for other git-based version control tools (e.g., gitea, gitlab, etc.) would be to enable the initialization of the plugin with different fit classes. Each fit class would support a specific git tool (e.g. gitlab), and implement the IFit interface so it will work nicely with the plugin. This way, anyone in the community who would like to contribute to this plugin with a new tool support would be able to do so. https://github.com/joshuakto/fit/blob/8878193d48d866a05dcd78f1599f4af068c69c5b/src/fit.ts#L9 If someone thinks of a better approach, please feel free to suggest them!

joshuakto commented 3 months ago

Ideally, the support for other git tools will not add to the size of the plugin and would only load the additional scripts as the user selects a new tool (e.g., from default GitHub -> Git Lab), if anyone have any ideas or inspirations from other plugins, please feel free to post them here.

andrewcrook commented 3 months ago

Gitea support as well including self hosting

github-actions[bot] commented 1 month ago

Stale issue message

andrewcrook commented 1 month ago

I really think this should remain open

joshuakto commented 1 month ago

reopening the issue for discussion