Futura-Py / Notes

The modern text editor written in python
MIT License
9 stars 2 forks source link

ask if you want to save the file on exit #74

Closed not-nef closed 1 year ago

HuyHung1408 commented 1 year ago

Add an option to auto-save the file every time we close the app would be great?

not-nef commented 1 year ago

yeah i can add that too

im-coder-lg commented 1 year ago

Um what about CPU usage if that is enabled? It has to affect it right?

not-nef commented 1 year ago

no not at all, why do you ask?

im-coder-lg commented 1 year ago

Well, auto-save has to work on a timed basis, eg. 15 minutes after each save. It can be force-stopped by manual save, but mainly the time code could just keep looping, get my track? That could eat up memory and swap storage, right?

not-nef commented 1 year ago

nah, @HuyHung1408 meant that the program saves without asking when the program is closed. thats easy by just catching the window delete protocol

im-coder-lg commented 1 year ago

Oh, that way. For most of us, autosave means a periodic save of a file, that is immediately saved on closing or on a fixed timeframe or when the file is out of focus, ie. when I open up another file. This is a really good idea, however you must make it customisable to the users, right?

not-nef commented 1 year ago

my commit is from the future

image

im-coder-lg commented 1 year ago

Well that is the weirdest thing I ever have seen, and I see a lot of weird things.

im-coder-lg commented 1 year ago

Looks like I need to look for a commit resistance haha

sumeshir26 commented 1 year ago

lol is ur phone set to a different time than ur pc?

not-nef commented 1 year ago

actually no

not-nef commented 1 year ago

why should it be that would be confusing as hell

im-coder-lg commented 1 year ago

Well, what @sumeshir26 told was right. However, git commits are made with the date too, which could tell you stuff.