Undo Feature

English support forum

Moderators: white, Hacker, petermad, Stefan2

cubic
Junior Member
Junior Member
Posts: 78
Joined: 2007-07-18, 12:21 UTC

Re: Undo Feature

Post by *cubic »

ghisler(Author) wrote: 2019-09-26, 13:32 UTC You can also undelete it from recycle bin via right click on the Windows desktop.
Yes. You are right, but you are also talking here with lazy people.
The recycle bin is so many clicks away :)

I would LOVE to press Ctrl+Z in TC to restore a deleted file or un-rename a file, etc

Idea/dirty trick: What if the last delete operation in TC is not an actual delete. You only move the deleted file to a temp folder. When a new delete op occurs, the previous file is actually deleted. Otherwise, on undelete, you move the file back from Temp to its original location.

Anyway, the rename op CAN be easily undone since it does not involve the Recycle.
User avatar
mausebär
Member
Member
Posts: 184
Joined: 2008-03-25, 13:30 UTC
Location: Near Munich / Bavaria / Germany

Re: Undo Feature

Post by *mausebär »

...The UNDO-option would be useful for move operations rather than for delete. If accidentally or deliberately a file is overwritten by moving a file with the same name, it canot be revived anymore... If you're lucky you can rescue the overwritten file with Windows "previous versions"... but if there is no backup, the file is lost... See also here:
https://winaero.com/blog/restore-previous-versions-windows-10/
or other. Therefore a certain amount of overwritten files should be stored somewhere for fast revival...
Der Teufel schläft nie...
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Undo Feature

Post by *petermad »

2cubic
The recycle bin is so many clicks away
One click with this button:

Code: Select all

TOTALCMD#BAR#DATA
cm_OpenRecycled

shell32.dll,32
Open Recycle Bin (virtual)


2127
To make the button:
1. Mark the green text above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctri+C).
3. Right click on TC's buttonbar and choose "Paste".
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Undo Feature

Post by *Dalai »

petermad wrote: 2020-01-18, 17:20 UTC 2cubic
The recycle bin is so many clicks away
One click with this button:
Or right-click on the F8 button and select "Open" (if the function keys are shown in the TC interface).

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Undo Feature

Post by *petermad »

Or right-click on the F8 button and select "Open" (if the function keys are shown in the TC interface).
But that opens the Recycle Bin in Explorer - cm_OpenRecycled opens it in TC.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Undo Feature

Post by *Dalai »

True. Depends on personal taste and perhaps the situation which one is better.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
NotNull
Senior Member
Senior Member
Posts: 266
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: Undo Feature

Post by *NotNull »

Still, undeleting a file is only a small portion of what Undo should take care of.
For example: If I copy a file from C:\Folder1 to C:\Folder2, there is nothing to undelelete..

As an Undo function is one of the 8 must-have features for my file manager, I did some research a while ago to see if it was possible to programmatically call the Undo funtions (/API's). As far as I could find, this is not exposed to the "outside world", making this an issue for a lot of file managers.
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Undo Feature

Post by *Usher »

2NotNull
You should first turn on log file in TC options (logging has been mentioned in old messages from this topic) and see if it's enough helpful for your needs.
Andrzej P. Wozniak
Polish subforum moderator
NotNull
Senior Member
Senior Member
Posts: 266
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: Undo Feature

Post by *NotNull »

Very creative! :)
I'll play with it. Maybe even write something to undo/reverse these logged actions ..
Thanks!
DerkWehler
Junior Member
Junior Member
Posts: 2
Joined: 2020-06-10, 21:13 UTC

Re: Undo Feature

Post by *DerkWehler »

MVV wrote: 2019-09-25, 14:03 UTC How can TC undelete a file that has been deleted? If it has been deleted to the recycle bin, you can undelete it manually, if it has been deleted permanently, you can't undelete it and TC can't too.
If it has been deleted perm, you can't, but normally things [in windows] fo to recycle bin, so it's just an interface into getting it back from there.

Windows Explorer has undo for all the items icfu listed. Obviously possible. Ctrl-Z / Undo (not to mention Redo) are staples in Windows. If they will not implement this, then it's no better than JustManager or DoubleCommander, which are free.
cubic
Junior Member
Junior Member
Posts: 78
Joined: 2007-07-18, 12:21 UTC

Re: Undo Feature

Post by *cubic »

"Ctrl-Z / Undo (not to mention Redo) are staples in Windows"
RIGHT!

"then it's no better than JustManager or DoubleCommander, which are free"
I wouldn't dare to compare any other program with TC. TC is the king!
Dazzer
Junior Member
Junior Member
Posts: 67
Joined: 2016-12-14, 08:35 UTC
Location: Amsterdam

Re: Undo Feature

Post by *Dazzer »

I think we need undo in TC.

Just because it can't work perfectly under all circumstances isn't an argument not to have it.

For example, say i mistakenly move 10 files into a folder containing 500 files.

It's quite a PITA to now locate all those files and move them back again.

I'm sure there is a workaround to select them, but this is surely and very clearly a reversible operation for which we need a simple "undo" option.

Cheers!
Last edited by Dazzer on 2024-02-20, 10:09 UTC, edited 1 time in total.
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Undo Feature

Post by *Stefan2 »

Dazzer wrote: 2024-02-20, 08:03 UTC
It's quite a PITA to now locate all those files and move them back again.

At least you can enable logging in TC, and then use that log to create an undo.cmd yourself




 
User avatar
mausebär
Member
Member
Posts: 184
Joined: 2008-03-25, 13:30 UTC
Location: Near Munich / Bavaria / Germany

Re: Undo Feature

Post by *mausebär »

I think the whole discussion is useless for me, because I wanted an "Undo"-function for overwritten files, not a "Recovery"-function for deleted files...

Normally an overwritten file is lost
. Means, if I overwrite a file by mistake, there should be a copy of the target-file, managed by TC.
Means also that TC should make a copy of the file to be overwritten before overwriting. After the file is written, there should be an "emergency backup" of the file before overwriting... Which could be recovered by Crtl+z, or a different shortcut...

I know what I'm speaking of, it happened to me a couple of times.

The recovery of the file by explorer opption "previous versions" does not help much (as mentioned above), because these files are normally at least 1 day old, or even older what doesn't help very much...
Der Teufel schläft nie...
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Undo Feature

Post by *Horst.Epp »

2mausebär
There should never be a default behavior as you request, it would give a massive performance impact
and wouldn't make sense if it's optional.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
Post Reply