You are not logged in.
Hello,
Is a log kept of Thunar's activity? If so, where would it be? I am trying to create a bash script that will allow me to undo my actions in Thunar such as move or copy files--perhaps with a shortcut key ("Ctrl + Z"). As you know, our beloved Thunar currently doesn't have an undo/redo function. Once, you have done an action you, you are on your own if you want to undo it.
Or, better yet, if you have any ideas of how to add an undo/redo function to thunar, without creating a custom build, please share.
Thanks,
Sam
Last edited by sambaji (2017-04-21 20:14:41)
Offline
Unfortunately, Thunar doesn't log actions like that. The only way to get Thunar to undo/redo file/folder actions is going to be to add the functionality into the code.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I figured so.
Thanks for answering.
Offline
I think it would be useful to have a simple log of fs changes; that is
-- an optionally invokable parameter, perhaps to Thunar's daemon ;
-- off by default
-- perhaps configurable, something along the following lines:
| #> cat ~/.thunar_history
| moved "/path/was" to "/path/is"
| copied "/this/path" to "/that/path"
| ...
## uncomment to include timestamps.
## this value can be any formatting string that is valid to the date cmd.
[#]Timestamps='%Y%m%d%H%M%S'
* resulting in:
| #> cat ~/.thunar_history
| $(date +"$Timestamps"): moved "/path/was" to "/path/is"
| $(date +"$Timestamps"): copied "/this/path" to "/that/path"
| ...
## uncomment to include fs mount actions
[#]LogMounts=true
* resulting in:
| #> cat ~/.thunar_history
| $(date +"$Timestamps"): mounted "/dev/path" to "/mnt/path"
| $(date +"$Timestamps"): moved "/path/was" to "/path/is"
| $(date +"$Timestamps"): copied "/this/path" to "/that/path"
| $(date +"$Timestamps"): unmounted "/dev/path" from "/mnt/path"
| ...
## phrase log entries as their equivalent shell command
[#]Phrash=true
* resulting in:
| #> cat ~/.thunar_history
| $(date +"$Timestamps"): mount [-options] "/dev/path" "/mnt/path"
| $(date +"$Timestamps"): mv "/path/was" "/path/is"
| $(date +"$Timestamps"): cp [-r] "/this/path" "/that/path"
| $(date +"$Timestamps"): umount ["/dev/path"|"/mnt/path"]
| ...
...I typed all of this before finding "thunar-vcs-plugin"...
...installed it.
...the right-click menu option "GIT" > "log" which it provides seems to contain all the necessary data, however:
...How to access these logs pragmatically?
...The package does not include a manpage.
...Will consult the project's online documentation.
Thought I'd post this for anyone else who asks this question; this appears to be an available path.
Will update if I pursue this enough to write a cool script or something.
Last edited by bunyon (2023-09-24 00:36:51)
Offline
This isn't something I would expect from a file manager and I don't recall seeing another file manager that does this. Can you point me to one?
Siduction
Debian Sid
Xfce 4.18
Offline
My Thunar 4.18 has "undo" and "redo" items in the Edit menu.
Offline
[ Generated in 0.016 seconds, 11 queries executed - Memory usage: 557.47 KiB (Peak: 558.31 KiB) ]