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

Feature request: autosave functionality #220

Open
orjanv opened this issue Mar 29, 2024 · 5 comments
Open

Feature request: autosave functionality #220

orjanv opened this issue Mar 29, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@orjanv
Copy link

orjanv commented Mar 29, 2024

Would be nice with autosave.

@SpartanJ SpartanJ self-assigned this Mar 29, 2024
@SpartanJ SpartanJ added the enhancement New feature or request label Mar 29, 2024
@SpartanJ
Copy link
Owner

Can you describe how exactly should behave? Any open-buffer with modifications should be retained? Any new file also should be restored even if the user never saves it? ecode is project oriented, how it should behave if you not open a project / folder and just a single file, should load all previously loaded files without a project? Thanks

@orjanv
Copy link
Author

orjanv commented Mar 29, 2024

I realize that I cannot open an empty tab in the editor, it is only possible to open a new file, like touch and then it will not be a case of autosaving a buffer. Unsaved modifications on open files perhaps, but then again, I'm warned on unsaved upon exit:

image

I have used thonny and notepad++ where I can open a new tab without assigning it to a filename, just an unsaved note, which n++ would keep if closed. This last part was in my mind i guess.

@orjanv
Copy link
Author

orjanv commented Mar 29, 2024

Actually, I could open a new tab cith ctrl+t

image

@SpartanJ
Copy link
Owner

SpartanJ commented Apr 1, 2024

 I have used thonny and notepad++ where I can open a new tab without assigning it to a filename, just an unsaved note, which n++ would keep if closed. This last part was in my mind i guess.

Perfect. Yes, currently ecode will just alert the user that the document will be lost of not saved. Notepad++ doesn't have projects / folders so we would need to have a different behaviour. I think that what it makes more sense is: keep unsaved files from "non-project" files open on non-project context and keep unsaved files from each open project separately. So if you open a project and last time was closed with unsaved files they'll be restored, and if you open ecode without any open folder it will restore the files from that previous context.

@iahung2
Copy link

iahung2 commented Apr 2, 2024

@orjanv Is what you are asking for similar to the autosave plugin of Lite XL and Pragtical?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants