Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-04-21 20:07:10

sambaji
Member
Registered: 2017-04-20
Posts: 4

[Question] Does Thunar keep a log? (adding an undo/redo function)

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

#2 2017-04-21 23:28:02

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,005

Re: [Question] Does Thunar keep a log? (adding an undo/redo function)

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

#3 2017-04-22 03:25:11

sambaji
Member
Registered: 2017-04-20
Posts: 4

Re: [Question] Does Thunar keep a log? (adding an undo/redo function)

I figured so.

Thanks for answering.

Offline

#4 2023-09-24 00:06:02

bunyon
Member
Registered: 2023-09-23
Posts: 1

Re: [Question] Does Thunar keep a log? (adding an undo/redo function)

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

#5 2023-09-24 10:21:16

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 408

Re: [Question] Does Thunar keep a log? (adding an undo/redo function)

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

#6 2023-09-30 01:36:36

kreemoweet
Member
Registered: 2019-12-01
Posts: 7

Re: [Question] Does Thunar keep a log? (adding an undo/redo function)

My Thunar 4.18 has "undo" and "redo" items in the Edit menu.

Offline

Board footer

Powered by FluxBB