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

remote save #1

Open
lunixbochs opened this issue Jul 18, 2011 · 2 comments
Open

remote save #1

lunixbochs opened this issue Jul 18, 2011 · 2 comments

Comments

@lunixbochs
Copy link

I think remote save should either automatically trigger a save via view.run_command('save'), or save should trigger a remote save automatically (you can use an EventListener with on_post_save for this)

@stkerr
Copy link
Owner

stkerr commented Jul 18, 2011

Due to the fact that remote editing is done with pscp, it could be slow to upload the file after every change, especially with large files or a slow connection. Some of my files take 15 seconds to upload due to my slow connection. But for smaller file or a fast connection, this could be useful.

I think this should be added as an option, but not as default.

@lunixbochs
Copy link
Author

you can upload the file asynchronously - it doesn't need to block the sublime UI.

just use the subprocess module, and keep track of uploads. if you trigger a second upload before the first is finished, you can just terminate the first pscp process.

as for linux/osx support, just use the 'scp' binary usually provided in PATH

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