|
From: Hrotkó G. <ro...@us...> - 2017-06-29 21:42:38
|
I tested your requirement, and the full behavior is only possible with my patch: saveUntitled_24718.patch. I tried to prepare another patch with less code modifications, but there is a problem: if you change the backup/autosave while creating untitled buffers, you cannot get the right paths back without storing it into the perspective. Please try to create an untitled buffer, then restart, then change the backup/autosave path, then create another untitled buffer, then restart ... That is why I created my patch that way. --- ** [patches:#596] #501 Auto-save untitled buffers - patch** **Status:** pending-remind **Group:** **Labels:** untitled autosave **Created:** Fri Feb 17, 2017 05:34 PM UTC by Hrotkó Gábor **Last Updated:** Wed Jun 28, 2017 08:51 PM UTC **Owner:** Alan Ezust **Attachments:** - [saveUntitled.patch](https://sourceforge.net/p/jedit/patches/596/attachment/saveUntitled.patch) (22.0 kB; text/x-patch) I created a patch for the feature request: "#501 Auto-save untitled buffers". Altough the settings "Autosave untitled buffers" exists, but not working like described in the feature request. My patch extends this feature, when "Autosave untitled buffers" checked (default): - the untitled buffers will be autosaved when closing jedit, without a question prompt - the autosave for an untitled buffer saved to <jedit_settings_dir>/autosave, and reloaded after a restart (the state persisted to the perspective.xml) - closing an untitled buffer by hand removes the autosave file Tested on windows7 and linux also. The patch is against revision 24609. Please review. Thanks! --- Sent from sourceforge.net because jed...@li... is subscribed to https://sourceforge.net/p/jedit/patches/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |