-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Add feature for creating temporary file in case user does not apply saving current file. Kuzya must open temporary file in the next launching.
This feature must include the following:
- Add checkbox "Reopen file on Kuzya start" in Kuzya options dialog.
- If checkbox "Reopen file on Kuzya start" is checked user will not be asked about saving and Kuzya will create temporary file automatically.
- If this feature is disabled Kuzya will work in old way.
- Temporary file with source code should be saved in system temporary location (like %TEMP% in Windows)
- Find temporary file, open it and paste source code in the text editor, move text cursor on it's last position and set path to file which user hadn't saved last session
- Delete temporary files if user applies saving file before closing application.
- There is a necessity to save some extra information in Kuzya's settings file: source code, language, cursor position, path to temporary file with source code It's very convenient to use Kuzya's settings file and keep formatted source code in separate file. It's very convenient to store bool variable (if temporary file should be recovered right after next launching).