Author Topic: About "Save As" + don't "Keep old file": seems it still keeps the old file  (Read 246 times)

at5dapa1

  • Senior Community Member
  • Posts: 175
  • Hero Points: 17
1. In Notepad++ there is a "Save As" and a separate "Rename". I thought that SE's equivalent is "Keep old file" in the Save As dialog, but didn't see any difference. The old file always remains, have to manually open explorer and delete it...

2. Also in Help under "Saving Files" there are two identical "To save the current file or buffer with another name". I guess the 2nd should be "To save a copy of the current...".

3. Also did try to add "Save As" to the "_bufftabs_menu" (from Macros -> Menus -> Open Menu -> _bufftabs_menu -> Open) but I couldn't add anything to it (wanted to add gui-save-as). Is this menu customisable at all?
Thanks,
Daniel

Code: [Select]
SlickEdit Pro 2019 (v24.0.0.8 64-bit)
Serial number: WB951378
Licensed number of users: Single user
License file: C:\ProgramData\slickedit\24\slickedit.lic
Build Date: October 2, 2019   (State file: October 29, 2019)
Emulation: Visual Studio
OS: Windows 10 x64
OS Version: 10.00.0 
Memory: 13% Load, 4415MB/32481MB Physical, 5248MB/32481MB Page File, 5249MB/134217727MB Virtual
Shell Information: C:\WINDOWS\system32\cmd.exe /q
Screen Size: 1920 x 1080
Project Type: (Other)
Language: .m (Matlab)
Encoding: Automatic
Installation Directory: D:\tools\totalcmd\Tools\dev\SlickEdit\core\24.0.0\ (non-removable drive,NTFS,645151MB free)
Configuration Directory: D:\tools\totalcmd\Tools\dev\SlickEdit\config\24.0.0\ (non-removable drive,NTFS,645151MB free)
Spill File: C:\Users\...\AppData\Local\Temp\$slk.10080 (non-removable drive,NTFS,36743MB free)
Hotfixes:
D:\tools\totalcmd\Tools\dev\SlickEdit\config\24.0.0\hotfixes\hotfix_se2400_3_cumulative.zip (Revision: 3)

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4922
  • Hero Points: 402
Re: About "Save As" + don't "Keep old file": seems it still keeps the old file
« Reply #1 on: November 03, 2019, 12:48:15 am »
The "Keep old file" check box has nothing to do with deleting files.  It determines whether the buffer name changes. Maybe it should be called "Keep old buffer name". When on, you are just writing the contents of the current buffer to some output filename.

at5dapa1

  • Senior Community Member
  • Posts: 175
  • Hero Points: 17
Re: About "Save As" + don't "Keep old file": seems it still keeps the old file
« Reply #2 on: November 04, 2019, 09:09:35 am »
Thanks for the answer. Can then SE have an equivalent to Notepad++'s Rename? This is useful while refactoring Matlab code which requires the name of the script file to match the script's main function.
Thanks,
Daniel

jporkkahtc

  • Senior Community Member
  • Posts: 1837
  • Hero Points: 178
  • Text
Re: About "Save As" + don't "Keep old file": seems it still keeps the old file
« Reply #3 on: November 04, 2019, 06:40:05 pm »
Amazing --- I never noticed that!
I've also wanted a "Save copy as" from slick, and there it is staring me in the face.
Not only that, now I see "File ->Save Copy as". When did that get added? I'm so used to not having that, I apparently never noticed it when it got added :o


Anyways, I'd second that "rename"
Renaming an open buffer in Slick is painful, and you lose file backup history.
Ideally, rename would also update file backup history - at least renaming the file in history, and at best recording the fact that there was a rename and dealing with it correctly. (Could be you just duplicate file backup history under the new name).

While you are at it, add "delete" too :-)



Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4922
  • Hero Points: 402
Re: About "Save As" + don't "Keep old file": seems it still keeps the old file
« Reply #4 on: November 05, 2019, 02:02:42 am »
Rename would be very useful. Extra complexity with Backup History and Projects but should be doable.

"Save Copy As" is redundant. Same as "Save As" with Keep old file checked. It's just WAY more obvious what it does.

rowbearto

  • Senior Community Member
  • Posts: 1481
  • Hero Points: 112
Re: About "Save As" + don't "Keep old file": seems it still keeps the old file
« Reply #5 on: November 05, 2019, 04:03:34 pm »
I would also like a rename. Especially if I could right click an tab for a buffer and have a rename option there. And if the file is in my project then update the vpj file with the new name of the file. I encounter this quite a bit when I create a new source file, it takes me a few tries to get a good name for a new source file, so I keep having to rename outside SE and update my project file.

I posted a request for this feature last year: https://community.slickedit.com/index.php?topic=16335.0