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

Add a 'keep changes on No' opiton and return to MiniFiles.synchronize #1439

Open
2 tasks done
aShabat opened this issue Dec 29, 2024 · 1 comment
Open
2 tasks done
Labels
feature-request Request for a feature to existing module mini.files

Comments

@aShabat
Copy link
Contributor

aShabat commented Dec 29, 2024

Contributing guidelines

Module(s)

mini.files

Description

Is it possible to add a way to make MiniFiles.synchronize keep the changes to buffers if the query was refused and to know if it was refused or not?

I want it to allow me to rewrite 'l' map on file to synchronize, then open the file if changes to the file system were accepted.

@aShabat aShabat added the feature-request Request for a feature to existing module label Dec 29, 2024
@echasnovski
Copy link
Owner

echasnovski commented Dec 30, 2024

Thanks for the suggestion!

I guess adding the third option of something like "No, (K)eep edits" might be a good idea. And making synchronize() return true if sync was done and false (with or without keeping edits) otherwise. I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for a feature to existing module mini.files
Projects
None yet
Development

No branches or pull requests

2 participants