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

upload on save #11

Open
FrigoreD opened this issue Jun 16, 2024 · 1 comment
Open

upload on save #11

FrigoreD opened this issue Jun 16, 2024 · 1 comment

Comments

@FrigoreD
Copy link

Hi! Thx for plugin, just tried it.
Are there any plans to add upload file on safe? I think it's usual behavior like in jetbrins's ide
Maybe it can be configured not in transfer.lua config, but in deployment.lua with something like: "upload on save" => true.

@coffebar
Copy link
Owner

I didn't see that it may be needed, because my editor auto-saves a file on any edit action, so uploading a file in the middle of editing will break a remote.
This feature seems not hard: add autocommand that will read a config file, compare the path of the current file with deployment options and call TransferUpload command for the saved file. But it may affect performance, because we need to read config every time, even if you don't use the transfer plugin for the current project or auto-upload option is disabled.
My opinion is you should look at some other approach, or find a plugin that already has this feature. I saw them.

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