Menu

Save a Copy...

duke1995
2007-05-24
2012-11-13
  • duke1995

    duke1995 - 2007-05-24

    SCitE has a menu item called "Save a Copy..." in menu "File" which saves a copy of the current file but keeps the original file open in the editor.

    This comes in handy sometimes, could this be added in Notepad++ (my favourite editor, btw) too ?

    Thanks for this great editor :-)

     
    • pshute

      pshute - 2007-05-25

      I like this idea.  If you do a Save As to do this operation, it changes the name of the file in the editor.  I've often wished MS Word had the same thing - users are forever doing a Save As to save a copy to a floppy, then forgetting that all further saves go to the floppy.

       
      • Don HO

        Don HO - 2008-05-09

        It'll be in v4.9.2

        Don

         
        • Fool4UAnyway

          Fool4UAnyway - 2008-05-09

          1. Where will the new document/copy be located in Notepad++? Will it be opened as a new document, added at the end of the tab bar, or will it be inserted, to be next to the current document, preferrably right after (to the right of) it?

          2. Will the original file be saved as well, since a "copy" sounds like you'll have two instances of the same thing/content? "Save a copy..." feels like creating a copy from an explorer or file window. Perhaps it will be more clear to name this feature "Create a copy" not forcing you to save the new document first, but allowing you to do so or edit it first.

           
          • McLoo

            McLoo - 2008-05-09

            imho "Save a copy..." should create a new file from the state the active file currently has (or the latest saved version, which wouldn't be that nice), without saving the original.

            The location can be selected via folder/file dialog. It would be nice to have the possibilty to check wether to or not to open the new file.

            regards
            McLoo

             
            • Fool4UAnyway

              Fool4UAnyway - 2008-05-09

              So, to you, "Save a Copy" is what "Save As" already does?

              What do you want to happen to the original file when "saved-as-a-copy"?
              You don't seem to want it to be saved, so would you want to undo these changes?
              This could be simply done by re-opening the original file.

              In my opinion, it would be an addition if simply a file's contents could be copied to a newly created document. This way you will always get a Save As dialog anyway and you don't mess the leastest bit with the original document, whether it has been saved or not.

              This is also of use when your original file is read-only and you don't want to mess with it (unintentionally after having cleared the read-only flag) and don't want to be bothered to first have to save-it-as before being able to do any changes anyway.

               
              • koyama

                koyama - 2008-12-27

                The "Save a Copy As..." is a good addition, but it does not quite do the trick for me in Notepad++ 5.1.2.

                I was hoping that the saved document would open in a new tab (next to the original document).

                The reason why I want the new document to open after using "Save a Copy As..." is because I would then have an easy way to split an open file, say story.txt, in two files, say story1.txt and story2.txt.

                The methods would be as follows:

                1. With story.txt open, choose "Save a Copy As..." and save to story2.txt. At this point it is convenient that it already says story.txt in the dialog so you can just type in the missing character "2"

                2. Delete all contents in newly opened file. (CTRL+A, Del)

                3. Edit > Cut the relevant part from story.txt and paste it into the new file story2.txt

                4. Do ordinary "Save" of both files

                5. "Rename" story.txt to story1.txt. Again, it is convenient that you can just type in the missing character "1" in the "Rename"-dialog.

                With the modification to behavior of "Save a Copy As..." I think this would be the optimal procedure for splitting a file in two.

                 
              • Fool4UAnyway

                Fool4UAnyway - 2008-05-09

                > This could be simply done by re-opening the original file.

                ... if you had used the current Save As feature instead of the suggested Save A Copy.

                Perhaps this is also interesting or can be worked on as well:

                "Feature Request: allow editing read-only file" (Open Discussion forum)
                http://sourceforge.net/forum/forum.php?thread_id=1731264&forum_id=331753

                 
              • McLoo

                McLoo - 2008-05-09

                i always thought this feature is something like "branching" a file from a particular state on go on working with the source-file while the save-copy-as-file is... well a branched backup

                but let's see, what Don is going to implement ;-D

                regards
                McLoo