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

Support publishing of multiple files or whole projects #45

Open
finestructure opened this issue Jan 20, 2016 · 3 comments
Open

Support publishing of multiple files or whole projects #45

finestructure opened this issue Jan 20, 2016 · 3 comments

Comments

@finestructure
Copy link
Owner

Based on discussion in #44

Currently you can only publish files by navigating to the Edit menu and select Publish. If you want to collaborate on a whole project with many files this can be very tedious.

Things to consider:

  • how do you publish a multiple files / a projects?
  • how do you subscribe? You'd still need to bring up whatever editor is active "on the other side".
@pvinis
Copy link

pvinis commented Jan 20, 2016

just a small thought.. i think the best way would be that any change that happens, actually happens in the servers "project", and my xcode tabs are just windows to his files (it shouldnt matter if the server has the file open or not. so when the copilot editing is done, the server can just push the changes and then everyone can pull. i think thats much simpler than syncing, and at the end everyone has the same changes, but only one should commit. does that make sense? i dont know if there is a simpler way to do that.. like shared folder or something maybe? i dont know how xcode handles it if you open a project twice.

@finestructure
Copy link
Owner Author

Well, that sounds like a distributed version control system :) The way CoPilot works is that it exposes the text in an editor window via the network. It needs that editor window to apply the changes to and they're not saved unless you save - it's really just like typing in that window.

So the only way this would work in the context of CoPilot is if it auto-publishes new windows and the other party can open those easily. Note that when the publisher closes a window they are already unpublished. There's no other way to do it. The client still has the window and all its data but the place it's talking to is gone - so it cannot send (or receive) further updates. Instead you now have a local copy of the data.

From what you describe it seems like you want git but without the overhead of having to commit and that is indeed what CoPilot does. But it works on editor windows, not on files. I don't see a way around that but it could be easier to auto-expose new editor windows, allowing faster switching between files.

I hope that makes sense.

@pvinis
Copy link

pvinis commented Jan 20, 2016

alright. i understand what you mean. thanks for explaining how copilot currently works. i wish you luck with this issue and with copilot in general. maybe we will meet again :)

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