timburgess / brackets-ftp-sync

FTP/SFTP for Adobe Brackets
105 stars 19 forks source link

Autosync feature request #2

Open tkowalski opened 10 years ago

tkowalski commented 10 years ago

Hi ! It would be very nice to has autosync if you hit save shortcut. For example some kind of autoconnection checkbox in ftp config dialog. Then if you save the file you edited it's send to ftp automatically. It's only idea which is really missing in brackets/extensions...

kjsampat commented 10 years ago

Agreed. Great plugin. Would love to have a one-click sync after setup.

timburgess commented 10 years ago

Thanks for the feedback guys. One-click is a very good idea. I am working on some base FTP issues for the 1.0.3 release but will look into supporting a one-click sync.

Parcye commented 10 years ago

Auto-sync would be great, but for now just having it save the FTP Password would be fine. Having to place a 12 char strong password everytime isn't fun.

markholmes commented 10 years ago

Is this still on the radar? It's tough having to re-enter a password on every save. Otherwise, I love the extension.

timburgess commented 10 years ago

Code for saving the password has been committed into the master branch. I hope to do a 1.0.4 release with this by next weekend.

frederichoule commented 10 years ago

Could you add a keyboard shortcut to FTP Sync without confirmation when password is saved?

Thanks!

timburgess commented 10 years ago

With Parcye's password checkbox now out in 1.0.4, I've been thinking about a way to 'one-click' and I think a keyboard shortcut should be doable for the next release.

Could those who have posted on this issue @tkowalski @cronos916 @Parcye @markholmes @frederichoule comment on what your preferred keyboard shortcut would be. Cheers, Tim

Parcye commented 10 years ago

I was thinking of the option to hook into CTRL+S, when saving to local filesystem also save to web via sync. But now the entire tree gets checked for sync and not only the open files.

But I guess this could be unwanted for many others.

I don't really have a shortcut in mind.

frederichoule commented 10 years ago

Maybe ctrl+shift+s? So just adding a shift could do the sync?

Sent with my SGN2 On Mar 20, 2014 7:41 PM, "Parcye" notifications@github.com wrote:

I was thinking of the option to hook into CTRL+S, when saving to local filesystem also save to web via sync. But now the entire tree gets checked for sync and not only the open files.

But I guess this could be unwanted for many others.

I don't really have a shortcut in mind.

— Reply to this email directly or view it on GitHubhttps://github.com/timburgess/brackets-ftp-sync/issues/2#issuecomment-38234153 .

frederichoule commented 10 years ago

Sorry, CTRL+SHIFT+S is Save As.

Let's say CTRL+[SOMETHING]+S would sync FTP.

So you code, then Ctrl+Alt+S to Save All, then Ctrl+[SOMETHING]+S to sync them to server.

Maybe TAB? Is it possible?

timburgess commented 10 years ago

I think options with S have been largely used by Brackets itself and may also be targeted by other extensions. And it seems that 'F' variants are used for Find. So maybe a variant on R for 'remote'? i.e. Ctrl+Shift+R

Don't forget that keyboard shortcuts can be defined for each OS as well. So Windows could be Ctrl+Shift-R and OS could be Ctrl-Apple-R.

frederichoule commented 10 years ago

Seems good, at least for me.

Parcye commented 10 years ago

I would like the shortcut only to sync the file in focus. That would be the only reason for me to use a shortcut; as I syncing a CI project just takes to long when only just one file has been changed.

frederichoule commented 10 years ago

I think we would need 2 shortcuts then. I often modify a few files, then upload the entire project. And sometimes I also only modify one file.

ghost commented 10 years ago

I'll second what @frederichoule said - one and all. Right now the only thing stopping me moving totally from PSPad to Brackets is the lack of being able to edit a file directly on the server. Yes, I know it shouldn't be done, but sometimes a quick, safe tweak is needed and this would solve that problem.

timburgess commented 10 years ago

Thanks for the great comments guys. I think there are three related but separate features that have been mentioned here. 1) A way to perform the full sync that occurs at present but with just a keyboard shortcut 2) A keyboard shortcut to sync just the current file 3) Performance improvements for projects containing very large numbers of files.

I would like to keep 1 as the focus of this issue. I have created #12 and #13 for the other two

frederichoule commented 10 years ago

So (I'm speaking for Windows) CTRL+SHIFT+R for Full Sync would be nice.

Zorgatone commented 9 years ago

@timburgess Actually, no. Not just a shortcut for the single current file. I personally think it would be better (also) to have an option where you can tell the plugin to upload the current file everytime you change it and save it. This way the latest file will always be ready to viewed on the remote server, easy and quick.

ALSO, it would be great to specify both the local and remote directory (I'm getting mad uploading my project/src/ folder to remoteserver/website folder, I do not want to have a src directory in the server).

You can have a look at this, it's what I currently use on Atom.io: https://github.com/yongkangchen/remote-sync You could even make it read the same config file and behave similarly, so it would be possible to use both the editors (that would be the best approach).

I need this feature... I'd like to develop and see the changes immediately on the development server