Undo in tcmd
Moderators: white, Hacker, petermad, Stefan2
Undo in tcmd
Is there any way to undo operation in tc ?
- PeaceMaker
- Senior Member
- Posts: 287
- Joined: 2005-12-31, 22:32 UTC
- Location: Warsaw, Poland
- Contact:
- PeaceMaker
- Senior Member
- Posts: 287
- Joined: 2005-12-31, 22:32 UTC
- Location: Warsaw, Poland
- Contact:
I have a text viewer linked to my log file and placed on a button, so a specific TC log viewer needs to have more functionality than that for me to use it.
However, it'd be just a short step from the log to creating an undo function. Since the TC log is easily parsed, there should be no problem generating a batch (or AutoHotkey) undo for most steps or sequences of steps recorded in the log.
Of course, because of dependencies, there are complications querying which steps could actually be undone successfully... but since Dopus can figure that out, it is possible.
One scenario would be for the tool to sequence the undos in a sort of "sandbox" environment first and inform the user if any individual step of a sequence could not be undone successfully, then halt before applying the sequence outside the sandbox.
However, it'd be just a short step from the log to creating an undo function. Since the TC log is easily parsed, there should be no problem generating a batch (or AutoHotkey) undo for most steps or sequences of steps recorded in the log.
Of course, because of dependencies, there are complications querying which steps could actually be undone successfully... but since Dopus can figure that out, it is possible.
One scenario would be for the tool to sequence the undos in a sort of "sandbox" environment first and inform the user if any individual step of a sequence could not be undone successfully, then halt before applying the sequence outside the sandbox.
Last edited by JohnFredC on 2007-09-16, 12:00 UTC, edited 1 time in total.
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
- ghisler(Author)
- Site Admin
- Posts: 48088
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
A log file viewer would indeed be nice. Please consider the following, though:
1. The date format depends on the current registry settings. For example, Americans write the date in the form Month/Day/Year, most Europeans write Day.Month.Year, and most people in Asia Year-Month-Day. You can use GetLocaleInfo to find out the expected format.
2. The logged info is localized. You can find it in the wcmd_*.lng file, string number 1800-1921.
1. The date format depends on the current registry settings. For example, Americans write the date in the form Month/Day/Year, most Europeans write Day.Month.Year, and most people in Asia Year-Month-Day. You can use GetLocaleInfo to find out the expected format.
2. The logged info is localized. You can find it in the wcmd_*.lng file, string number 1800-1921.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
TC Log Viewer is HERE
- PeaceMaker
- Senior Member
- Posts: 287
- Joined: 2005-12-31, 22:32 UTC
- Location: Warsaw, Poland
- Contact:
2ts4242
Thanks a lot for this tool! Shall we use this thread for feedback or should we give it at totalcmd.net?
Some suggestions:
Thanks!
regards, van Dusen
[edit]
Ah, sorry, forget about the "not translatable elements"... I just found, that the keys from 4000 in <Deutsch.lng> are not translated yet
[/edit]
Thanks a lot for this tool! Shall we use this thread for feedback or should we give it at totalcmd.net?
Some suggestions:
- The ListBox headers should be translatable too (now they are shown in english: "Time", "Source", "Target")
- The menu item "Refresh" should be translatable too
- Would be nice, if you split the "Source" column in two columns: one for the "action" (copy, rename and so on), one for the source path / File
- The "Website" link in the "About" dialogue points to <http://www.utceditors.totalcmd.net/tclogviewer.htm> ==> 404; should be <http://www.totalcmd.net/plugring/tc_log_viewer.html>
- Would be nice, if splitted log files (when "Every day after midnight" is configured for log files in TC, for instance) were available through the date dropdown box (and must not be opened from the "Open..." dialogue).
- What do you think about filters (to restrict the list to "Delete" commands, e.g.)?
Thanks!
regards, van Dusen
[edit]
Ah, sorry, forget about the "not translatable elements"... I just found, that the keys from 4000 in <Deutsch.lng> are not translated yet
[/edit]
Last edited by van Dusen on 2007-09-18, 21:16 UTC, edited 1 time in total.
This thread misses one link;)
http://ghisler.ch/board/viewtopic.php?t=17032
http://ghisler.ch/board/viewtopic.php?t=17032