Undo Feature

English support forum

Moderators: sheep, Hacker, Stefan2, white

cubic
Junior Member
Junior Member
Posts: 63
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: 165
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...

User avatar
petermad
Power Member
Power Member
Posts: 9488
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, 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 9.5b10 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.960 (x64)
TC 3.0b16 on Android 6.0
Get: Extended Total Commander Menus | TC Languagebar | PHSM-Calendar

User avatar
Dalai
Power Member
Power Member
Posts: 6975
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

User avatar
petermad
Power Member
Power Member
Posts: 9488
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, 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 9.5b10 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.960 (x64)
TC 3.0b16 on Android 6.0
Get: Extended Total Commander Menus | TC Languagebar | PHSM-Calendar

User avatar
Dalai
Power Member
Power Member
Posts: 6975
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

NotNull
Junior Member
Junior Member
Posts: 63
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: 808
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.
Regards from Poland
Andrzej P. Wozniak

NotNull
Junior Member
Junior Member
Posts: 63
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!

Post Reply