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

Autosave without existing edit mode #62

Closed
xino1010 opened this issue Oct 26, 2024 · 6 comments
Closed

Autosave without existing edit mode #62

xino1010 opened this issue Oct 26, 2024 · 6 comments

Comments

@xino1010
Copy link

is there a way for auto save the file without pressing ESC or lossing the focus?
i want to save the file after 2secs after last modifications similar like visual studio code does.

Thanks you!

@primeapple
Copy link
Collaborator

Sure there is.

  trigger_events = {
    defer_save = { "InsertLeave", "TextChanged", "TextChangedI" }
  },

Added to your config should do the job.

@xino1010
Copy link
Author

awesome

@xino1010
Copy link
Author

xino1010 commented Nov 30, 2024

@primeapple could you take a look here please?

@okuuva
Copy link
Owner

okuuva commented Dec 4, 2024

@xino1010 I'll take a look. But autoformatting is more related to #55 than this.

@okuuva
Copy link
Owner

okuuva commented Dec 4, 2024

Ah, and you got it sorted out already. Good :)

@xino1010
Copy link
Author

xino1010 commented Dec 4, 2024

thanks anyway!

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

3 participants