Author Topic: File > Save COPY as...  (Read 8579 times)

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
File > Save COPY as...
« on: October 01, 2009, 10:28:50 am »
Missed feature: "File > Save COPY as..."

If i want to modify an document ("file name.txt" f.ex.) but keep the original source.

To achieve that:

* i do an file copy in explorer first ("file name.txt" ==> "file name_bak.txt"),

OR
* i do an "Save as.." to save as "file name_bak.txt"  ...-...  and then load the original "file name.txt" again.


Now I want to mention that i like the feature of NotePad2 "File > Save Copy..."
to just create an copy of the current open file to an new name ("file name_bak.txt")
and let me working on with my file ("file name.txt").

Maybe this is an improvement idea for HippoEDIT too?
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: File > Save COPY as...
« Reply #1 on: October 01, 2009, 10:39:51 am »
Thinking some more...

i can already do
1) "File >Save as..."   xxx_bak.ext
2) "File > Open" and pick the last xxx.ext file

So i got an more nifty idea: "versioning"
* "File > Save Copy as version"

to auto save my current file as xxx_001.ext.  (If this file already exist Then increase the number)
and leave my xxx.ext file open.

So my xxx.ext file is always the recent (youngest) file
and i get an collection of xxx_$$$.ext files as backup in an sorted manner.


--

This would also an great option for
"Options... > [ +] Editor > File Backup" ==> "[ ] keep Versions"
and/or
"Options... > [ +] General > AutoSave" ==> Every 30 minutes AND  ==> "[ ] keep Versions"

--

BTW, Backup:

PSPad has the optional option to
put the "bak" string at the end of the file name
instead to add them after the extension

Example:
HippoEDIT.ext.bak
PSPad.bak.ext

* This has the advantage that you can still open the backup file
   (with the right syntax scheme loaded and like this)
* and also make it more easy to include it into file-system-backups like *.ext

--

« Last Edit: October 01, 2009, 11:09:13 am by Stefan »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2183
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: File > Save COPY as...
« Reply #2 on: October 01, 2009, 03:53:32 pm »
Hi Stefan,

about Save COPY as - accepted. I think this is good/missing feature and would be added ;). I have seen such options in other editors before, but have no idea why it is needed :)

About simple versioning.  The idea is good I have it in my todo. And even maybe it was already discussed on forum. But it should be designed carefully and integrated smoothly ;) And I do not want such quick + dirty solutions ;).

Best regards,
Alex.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: File > Save COPY as...
« Reply #3 on: October 11, 2009, 11:17:16 am »
New in 1.47.732 - "File > Save as Copy..." added.

Now you can open an file and save it as Copy under an new name, while you still edit an file with the last name.

For example:
- open an file 'work.txt'
- use 'Save as Copy' to make an backup of that file as f.ex. 'work -last bak.txt'
- you still have the file 'work.txt' loaded to immediately start doing your work!
You save two extra steps as you had have to do before this feature was implemented. (i.e.: closing the copy file and reopen the work.txt file)

BTW, the "Recent Folders" box in the 'Save as'- dialog is very nifty, too.


Thank you Alex.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2183
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: File > Save COPY as...
« Reply #4 on: October 12, 2009, 10:37:36 am »
BTW: on Open Dialog (not done for Save dialog) there is also very nifty icon added to the toolbar near "View" and "Create New Folder" as "Add to Favorites" doing the same as one in File Explorer.
So now you can access you favorites folders also here.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: File > Save COPY as...
« Reply #5 on: October 21, 2009, 02:36:17 pm »
BTW, the "Recent Folders" box in the 'Save as'- dialog is very nifty, too.

Wish:
the "Recent Folders" box in the 'Save as'- dialog should provide the current folder of the current file TOO.
Right now i see only recent folders but not the folder from where i have open the current file i want to 'save as'.

EDIT: no! wait.
Sorry, it works as expected, i see the current path in 'Save as'!

The thing is:
if i open an file from command line (from file manager) in HippoEDIT, then HE's 'Save as'-dialog didn't know the path.
O.K., now i think this is more complicated to implement  :-\

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2183
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: File > Save COPY as...
« Reply #6 on: October 22, 2009, 04:23:50 pm »
Hi Stefan,

from your last posts I think it is better to you to have Tools->Options->General->File Open Dialog Initial directory as Current File directory but not Last used. Or this does not help you or does not work for Save As ?

From another side, be sure that workspace you used has Last Used history enabled.

Current folder is not added to Recent by default. I think you get it there by chance or it was initial directory.

I would think about adding current folder somewhere, but probably in toolbar menu was explained before and I need to place it also in Save As dialog.

Best regards,
Alex

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: File > Save COPY as...
« Reply #7 on: October 29, 2009, 04:37:06 pm »
> have "Tools->Options->General->File Open Dialog Initial directory" as "Current File directory" but not "Last used".
> Or this does not help you or does not work for Save As ?
This IS set to "Current File directory"


> workspace has "Last Used history" enabled
Yes, it is.


Now i open an file from file manager into HE.
I modify and use "Save as..."
But i see an old folder to save to only. And the recent folder box didn't provide the folder of the current open file.
So i have to browse for that folder first.

--
BTW:
"File Open Dialog Initial directory" is option for "File SAVE Dialog Initial directory" TOO?
SO the description should reflect this too, IMHO.
"File BROWSE Dialog Initial directory"
or
"File Open/Save Dialog Initial directory"

Isn't it?  ;)
--

.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2183
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: File > Save COPY as...
« Reply #8 on: October 29, 2009, 06:16:22 pm »
Hi Stefan,

Quote
This IS set to "Current File directory"

Now i open an file from file manager into HE.
I modify and use "Save as..."
But i see an old folder to save to only. And the recent folder box didn't provide the folder of the current open file.
So i have to browse for that folder first.

This is a bug. I think. Can reproduce it also. File Save dialog should use same settings as File open dialog. From my understanding (generally do not know if this correct, or better to use current file dir always...).

Quote
BTW:
"File Open Dialog Initial directory" is option for "File SAVE Dialog Initial directory" TOO?
SO the description should reflect this too, IMHO.
"File BROWSE Dialog Initial directory"
or
"File Open/Save Dialog Initial directory"
You are right. Would change the description and fix a bug. And later we can discuss what is better to show as initial directory in case of Save As dialog...

BTW: I have added all useful folders to Favorite menu in toolbar of Save As (beta already on server, but has some problems with installer, so I have not announce it,  would fix today evening hopefully)  and also new template tag %?% you can used.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: File > Save COPY as...
« Reply #9 on: October 29, 2009, 08:23:48 pm »
> I have added all useful folders to Favorite menu in toolbar of Save As

What do u mean with "useful folders" ? ...... I have there only "Add" and "Manage" (737), or i didn't understand.


Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2183
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: File > Save COPY as...
« Reply #10 on: October 29, 2009, 11:20:04 pm »
A :) Ok.

No, I have not explained :)

You can get there as you favorites folders as automatic folders like:
- Current file directory
- Last directory
- Working directory (From Document settings in tools or Project settings)
- System Current directory (but probably it is always equal to currently selected, because windows changes current directory when navigation in file dialog)

From this 4 duplicates are removed and also folders equal to currently shown in file dialog removed.
So, probably this was your case.
Try to change directory and then check again.

Best regards,
Alex.
P.S: I see you have succeeded in installing of the beta ;)

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: File > Save COPY as...
« Reply #11 on: October 30, 2009, 08:55:15 am »
Sorry i still doesn't get it.

A> You can get there as you favorites folders as automatic folders like:
Automatically? ???  In the star favorites? ??? I have there nothing more as the two default entries as shown in my pic above.

A> Try to change directory and then check again.
What? Where?

Ahhh, wait, NOW !
 - i open the "Save as" dialog - and select an other folder from "recent folders"
- or browse for an other folder -
- then i have the folder of the current open file  in the favorites menu.
Nothing more.
And only for the moment, next time it is removed. (just to mention it... i guess this is wanted that way)
So i see one of your four: "- Current file directory" only there.


AND
Do you mean with "- Last directory" ==> "- Last directories"? - the dirs i was in while browsing for the right one? -
Otherwise i understand "- Last directory" may be the same as "- Current file directory"?


I don't see how this is meant and should work .... i will test some more to get it.

-----

A> P.S: I see you have succeeded in installing of the beta
Just to make this clear: I never use the installer, i just unpack and use.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2183
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: File > Save COPY as...
« Reply #12 on: October 30, 2009, 10:14:39 am »
Just wait for a new beta. I have done some more fix.

Last directory, is the directory were used, you last time opened Open/Save dialog.
For list of recent folders, you still need drop down at the bottom (but maybe it is a good idea to move everything to toolbar... but it would be not so easy to find it)
There is no sense to show you duplicates or folder equal to currently open folder. The why is some states you can see nothing (for example, when your initial dir is current file dir, and you just open the dialog).
But if you would select last directory or this directory in setting as initial for file open/save dialogs, you would see something in the menu immediately after open of dialog.

And the entries are dynamic and depend from current state of the dialog.

Offline Alain

  • Registered User
  • Jr. Member
  • *
  • Posts: 50
  • Karma: +1/-0
    • View Profile
Re: File > Save COPY as...
« Reply #13 on: October 30, 2009, 11:25:10 am »
Hello

in my first editor  if you have selected a bloc
the option File>Write selection.... and option File>Append selection... is turned ON
and you can "Write" /create/ a new file with the active extension, in the active directory ;
just write the new name with  the keyboard for this new file.

Save COPY as... is for all the text,
 I think a "COPY selection as..." is more interesting

Your advise ?

Have a good day
Alain

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2183
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: File > Save COPY as...
« Reply #14 on: October 30, 2009, 03:40:35 pm »
Hi Alain,

thanks for suggestion!

Something similar already exist. It requires once keystroke more, but can cover functionality for creating file from selection. Edit->Paste New. If you copy selection, with this command you get a new file with same syntax + encoding. Only, what I see that extension is not copied. But here it is correct, because it is from clipboard, and generally do not connected to some document.

And what does Append ?

Best regards,
Alex.