• Resolved wpfan1000

    (@wpfan1000)


    Hi, is it possible to Save a file as a new name?
    This is a must have for me to keep versioning a file…..

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author shanept

    (@shanept)

    Hi wpfan1000,

    AceIDE already has inbuilt versioning!
    Check under the plugin/backups directory.

    Kind regards,
    Shane Thompson

    Thread Starter wpfan1000

    (@wpfan1000)

    Hi, thanks for the response.

    I was aware of the automatic backups, but this is very different from a Save as for the following reasons:

    1) I cannot control the naming of the file
    2) I cannot control the Save as location of the file
    3) I cannot control when I do a Save as

    So, I will take it by your response (you did not answer my question) that there is no Save as….

    Thread Starter wpfan1000

    (@wpfan1000)

    PS Please consider adding this as a feature

    Thread Starter wpfan1000

    (@wpfan1000)

    Also I am trying to find documentation as to how the Backup works but I don’t see anything except:

    Automatic backup of every file you edit. (one daily backup and one hourly backup of each file stored in plugins/AceIDE/backups/filepath)

    But this does not describe the following:

    When is a file backed-up? On AceIDE open? On Save file? Hourly but at what hour? Daily, starting when?

    Is there a limit to the number of backups of a file? Ie say 10 backups? Does the oldest automatically get deleted?

    I did a backup test and I see that AceIDE adds the date (not time) after a filename and then a number like _00 or _12. What do they mean? Are they related to time?

    Why not just add the time in hh_mm_ss?

    Can I change the backup location?

    In the Files window I cannot change the width of it and so I can only see the leftmost part of each filename, and I cannot see the date portion of the file, meaning I cannot select a backed up file based on its date……

    • This reply was modified 6 years, 8 months ago by wpfan1000.
    Plugin Author shanept

    (@shanept)

    Hi wpfan1000,

    So, I will take it by your response (you did not answer my question) that there is no Save as….

    That is correct, currently there is no Save As functionality, but I am more than happy to accept a PR on github ??

    In regards to the naming of the backups, I agree with you that the naming needs more precision, I’ll add that. File backups are upon saving the file.
    The relevant code that implements the backup logic is here.

    In regards to changing the location, that is not possible – I can’t imagine why one would need to? Any thoughts?

    Kind Regards

    Thread Starter wpfan1000

    (@wpfan1000)

    Hi, I am not a developer and so I could not save my life if it meant having to do a PR on github ?? sounds kinda dirty ?? I never studied public relations ??

    Thanks for clarifying more about the backup details.

    As for the location – currently all backups of each file is stored in plugins/AceIDE/backups/filepath) – so imagine editing 20 plugins over time and doing Save as to create say 3 files as revisions for each plugin. Then you quickly have 60 files that belong to 20 different plugins all in the same location. This is not a good way to organize and manage those files, nor is it a good way to store backups from the server to a local or remote repository…..

    • This reply was modified 6 years, 8 months ago by wpfan1000.
    Plugin Author shanept

    (@shanept)

    Ok, I’ll see what I can do over the next few days to get a “Save As” function in place.

    There is a larger vision in mind with the backup system. Back when the plugin was WpIDE, the backups were decided they were to be stored like that, and the original maintainer started working on a restore interface. It never got completed. There will eventually be a restore interface, but it is probably still a while away unfortunately.

    Not sure what you mean in regards to the local or remote repository?

    Kind Regards

    Thread Starter wpfan1000

    (@wpfan1000)

    Hi,

    Thanks for offering to do a Save as function. I realize that may not be trivial – no rush – if it is something you could plan in a future release that would be great as well, to give you time to do it..

    By local or remote repository I mean backing up files from my WP installation on the server (this plugin edits files directly on the server) to my laptop (local) or something like Dropbox (remote).

    Thread Starter wpfan1000

    (@wpfan1000)

    Thanks for adding HMS to filename ??

    Thread Starter wpfan1000

    (@wpfan1000)

    PS when I say above:

    By local or remote repository I mean backing up files from my WP installation on the server (this plugin edits files directly on the server) to my laptop (local) or something like Dropbox (remote).

    I do not mean that the plugin should do this, I mean that I do this manually or thru other means ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Save as?’ is closed to new replies.