|
From: Alan E. <ez...@us...> - 2017-06-29 22:44:30
|
I think that when the autosave/backup directory is changed, it could popup a dialog that advises the user to restart jEdit to ensure all buffers are closed/opened again, to avoid old buffers autosaving to the wrong location. Your solution is only addressing untitled buffers. Testing this latest patch, autosave untitleds are correctly restored but only when the autosave/backup directory is set. If it is left blank, the autosaves are stored in the wrong place - your default location instead of the untitled buffer's location. --- ** [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:** Thu Jun 29, 2017 09:42 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. |