Restore deleted items options
Restore deleted items options
I would like to have a simple option of reverting the last delete operation
Assuming that my items are moved to the Recycle Bin and not deleted straight away, I wish I cold just pick an entry from the overall right click menu or click some icon placed on Favorite Toolbar or on the status bar and thus have automatically performed the equivalent of me:
1] opening the Recycle Bin
2] navigating manually in it to the latest items or filtering / sorting items deletion date
3] choosing the option of restoring them to the place of their last position
This would save me a lot of time and clicks as I often find myself [for whatever reason] deleting the wrong item(s) - thus repeating the mundane task of reverting yet another mistake
In the meantime: does anyone know of a BAT or PS1 script that can do this?
Assuming that my items are moved to the Recycle Bin and not deleted straight away, I wish I cold just pick an entry from the overall right click menu or click some icon placed on Favorite Toolbar or on the status bar and thus have automatically performed the equivalent of me:
1] opening the Recycle Bin
2] navigating manually in it to the latest items or filtering / sorting items deletion date
3] choosing the option of restoring them to the place of their last position
This would save me a lot of time and clicks as I often find myself [for whatever reason] deleting the wrong item(s) - thus repeating the mundane task of reverting yet another mistake
In the meantime: does anyone know of a BAT or PS1 script that can do this?
Last edited by Forez on 15.01.2023, 23:27, edited 7 times in total.
Re: Restore deleted items options
Workarounds:
FreeCommander XE "not so obvious" settings - Page 2 - FreeCommander Forum
FreeCommander XE "not so obvious" settings - Page 2 - FreeCommander Forum
Use the guide in that post, then you can create recycle bin tab, or just click the splitter recycle bin, it should be opened in fc, in the current tab, then you can right click the last deleted item, it should be on top, and select "restore", it's the first context menu item. Another way is to drag&drop that file to other panel, or Ctrl+X, Ctrl+V. It's possible also to use F6 to move to other panel, but in this case the name is not preserved.Dreamer wrote: ↑28.11.2019, 22:45 Here is the guide, how to use a condition for the Recycle bin, it's usable in Column profiles and Automatic views.
This way, if you open Recycle bin, or switch to tab with Recycle bin, details view and sorting by Date Deleted - also folders will be used automatically, so the last deleted item will be first in the list, even if it's a folder.
To add the Recycle bin to Automatic views:Marek wrote: ↑26.11.2019, 21:28 If you want to define column profile for Recycle Bin:
- open the Recycle Bin in the left pane
- switch view to details
- open popup menu with Shift+F1 (left pane with recycle bin is active)
- select "Column profiles"->"Add current column profile specific to folder"
- define the name for the new profile: RecycleBin
- open Tools->Settings and select "Column profiles/Automatic view" in the tree
- select new created profile "RecycleBin" and click on "Define columns" button
- click the button "Define columns" and set the columns as you like
- save the setting
- create "RecycleBin" item
- add any condition, e.g. empty <sub>
- for View "type:" select "Details"
- for "Columns profile:" select "RecycleBin"
- for "Sort on:" select "Date Deleted" and click the button Descending (if you want to sort items by date deleted)
- apply and save settings
- close FreeCommander
- open FreeCommander.ini file in any text editor
- search for "[FcDetailedViews_RecycleBin"
- copy the line "Condition=..." below to clipboard (Ctrl+C)
- open FreeCommander.views.ini file in any text editor
- search for "Name=RecycleBin"
- replace the line "Condition=..." few lines below with the text from clipboard (Ctrl+V)
- save the file
- start FreeCommander
Re: Restore deleted items options
Funny thing: I must have added some time in the past a Column Profile for Recycle Bin as I already have it in my Column Profiles / Automatic Views section along with two others. And these two others I can select as I can see them on the list list along with the >>fc_default_view<<. But I cannot see thus use the profile for RC as it is present only in options. [So not so funny now]Dreamer wrote: ↑18.09.2021, 15:46 Workarounds:
FreeCommander XE "not so obvious" settings - Page 2 - FreeCommander Forum
[...]Dreamer wrote: ↑28.11.2019, 22:45 Here is the guide, how to use a condition for the Recycle bin, it's usable in Column profiles and Automatic views.
This way, if you open Recycle bin, or switch to tab with Recycle bin, details view and sorting by Date Deleted - also folders will be used automatically, so the last deleted item will be first in the list, even if it's a folder.
[...]Marek wrote: ↑26.11.2019, 21:28 If you want to define column profile for Recycle Bin:
- open the Recycle Bin in the left pane
- switch view to details
- open popup menu with Shift+F1 (left pane with recycle bin is active)
- select "Column profiles"->"Add current column profile specific to folder"
- define the name for the new profile: RecycleBin
- open Tools->Settings and select "Column profiles/Automatic view" in the tree
- select new created profile "RecycleBin" and click on "Define columns" button
- click the button "Define columns" and set the columns as you like
- save the setting
Re: Restore deleted items options
I don't understand, how you can't see them? When using auto views they can be activated automatically, so they don't have to be activated manually.
Perhaps you mean this known bug?
825 - Not all column profiles are in the list - FreeCommander Forum
Perhaps you mean this known bug?
825 - Not all column profiles are in the list - FreeCommander Forum
Re: Restore deleted items options
Apparently yes: I have this profile for Recycle Bin with its "condition" set to <pidl> visible in "Column profiles" tab editing window- but when I want to switch to it from a list it is not presentDreamer wrote: ↑25.09.2021, 18:01 [...]
Perhaps you mean this known bug?
825 - Not all column profiles are in the list - FreeCommander Forum
All in all this is giving me a headache with the end result of me having to every time after making an accidental deletion;
1] manually open Recycle in
2] change to detailed view
3] sort by date of deletion
Re: Restore deleted items options
As I said, you can set the column profile and automatic views and then you can skip steps 2 and 3, it works, guide is above.
Re: Restore deleted items options
Oh, I do!:
Code: Select all
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "explorer.exe shell:RecycleBinFolder", 9
WScript.Sleep 1111
WshShell.SendKeys "^z"
WshShell.SendKeys "%{F4}"
Last edited by Forez on 11.02.2023, 11:55, edited 1 time in total.
Re: Restore deleted items options
I do not understand the step
copy the line "Condition=..." below to clipboard (Ctrl+C)
from it. Below... what or where / which? I have like a dozen Condition= entries in my
C:\Users\YOUR-USER-NAME\AppData\Local\FreeCommanderXE\Settings\FreeCommander.ini
file
Re: Restore deleted items options
It's in the previous post already, step before, you need to search for "[FcDetailedViews_RecycleBin", then "Condition=..." is just below.
Anyway, the post is updated already, easier way can be used, here is the link:
https://freecommander.com/forum/viewtop ... 986#p30986
Anyway, the post is updated already, easier way can be used, here is the link:
https://freecommander.com/forum/viewtop ... 986#p30986
Re: Restore deleted items options
So I did do the instructions from https://freecommander.com/forum/viewtop ... 986#p30986
for
But:
A] In order to also always see my Recycle Bin with Detailed View mode already applied to it I need to check
Tools > Settings > View > Column profiles/Automatic views > Auto selectable views > Switch view mode automatically on folder change
which has a huge side effect of this automation being applied also to every other folder / Tab - which renders it totally counterproductive, because when cycling through Tabs they constantly get changed to <Default view>, not remembering a temporary change. And that makes it unusable [unless every other folder gets its own settings] - and thus still requiring from me a manual change to Detailed View mode when I open the Recycle Bin folder
B] Is there a way to hard lock the width of Columns for all Automatic views or just for one [the Recycle Bin one in this case]? I want my Recycle Bin to always open itself with the same widths applied to its Columns - but sometimes I need to manually change them e.g. to see a very long path in its entirety. Right now whenever I change width by dragging edge of a Column such change gets remembered for the next opening - and I do not want it to be remembered but taken out from my initial Settings
C] Is there a way to make the Column of Date Deleted be always the first one? I can make it the first during a session, when closing and re-opening Tabs - but it is not remembered when I close and re-open FreeCommander, yet again requiring from me a manual intervention
for
andIf you want to define column profile for Recycle Bin
and finally have items in Recycle Bin sorted always in a way that the last deleted one is at the top - which I what was afterTo add the Recycle bin to Automatic views
But:
A] In order to also always see my Recycle Bin with Detailed View mode already applied to it I need to check
Tools > Settings > View > Column profiles/Automatic views > Auto selectable views > Switch view mode automatically on folder change
which has a huge side effect of this automation being applied also to every other folder / Tab - which renders it totally counterproductive, because when cycling through Tabs they constantly get changed to <Default view>, not remembering a temporary change. And that makes it unusable [unless every other folder gets its own settings] - and thus still requiring from me a manual change to Detailed View mode when I open the Recycle Bin folder
B] Is there a way to hard lock the width of Columns for all Automatic views or just for one [the Recycle Bin one in this case]? I want my Recycle Bin to always open itself with the same widths applied to its Columns - but sometimes I need to manually change them e.g. to see a very long path in its entirety. Right now whenever I change width by dragging edge of a Column such change gets remembered for the next opening - and I do not want it to be remembered but taken out from my initial Settings
C] Is there a way to make the Column of Date Deleted be always the first one? I can make it the first during a session, when closing and re-opening Tabs - but it is not remembered when I close and re-open FreeCommander, yet again requiring from me a manual intervention
Re: Restore deleted items options
If you have already created column profile for recycle bin - simply move the profile in the list of profiles to the top of the list.A] In order to also always see my Recycle Bin with Detailed View mode already applied to it I need to check
Tools > Settings > View > Column profiles/Automatic views > Auto selectable views > Switch view mode automatically on folder change
You do not need to activate Auto selectable views.
It seems to work now even after closing and opening FreeCommander. If you lock the tab with the recycle bin then the sorting is saved too.C] Is there a way to make the Column of Date Deleted be always the first one? I can make it the first during a session, when closing and re-opening Tabs - but it is not remembered when I close and re-open FreeCommander, yet again requiring from me a manual intervention
Shortcut Shift+Ctrl+(Num+) is useful for auto adjust column sizes.
Re: Restore deleted items options
I have applied the same method as discussed here https://freecommander.com/forum/viewtop ... 325#p42336 - and finally it seems to be working as I want it, i.e. with automatically applied sort order from the newest deleted items to oldest ones
But I do need to use the
Column profiles > Profile settings... > Auto selectable views > Switch view mode automatically on folder change
for it
Thank you
But I do need to use the
Column profiles > Profile settings... > Auto selectable views > Switch view mode automatically on folder change
for it
Thank you
Re: Restore deleted items options
Nevertheless the proposition from my initial post of having
For example Mozilla Thunderbird has the option of
Edit > Undo Delete Message
which I use swiftly all the time whenever I make a stupid mistake. [And yes- I know that Thunderbird operates on somewhat closed internal database thus tracking user steps on items is one probably easier and in whole different way than in Windows at large - but I just wanted to illustrate what I mean and show a real case scenario used by people other than me]
is still valid, as that VBS script workaround of mine
is not always working as what it performs is an overall un-do action and not precisely an un-deleteForez wrote: ↑15.01.2023, 23:24 [...][...]Code: Select all
Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "explorer.exe shell:RecycleBinFolder", 9 WScript.Sleep 1111 WshShell.SendKeys "^z" WshShell.SendKeys "%{F4}"
For example Mozilla Thunderbird has the option of
Edit > Undo Delete Message
which I use swiftly all the time whenever I make a stupid mistake. [And yes- I know that Thunderbird operates on somewhat closed internal database thus tracking user steps on items is one probably easier and in whole different way than in Windows at large - but I just wanted to illustrate what I mean and show a real case scenario used by people other than me]
Re: Restore deleted items options
And here is a discussion about un-do option on forum of Everything: https://www.voidtools.com/forum/viewtop ... 531#p62531
But what is more important: Everything has an un-delete feature available in it under
Edit > Undo Delete
and even gives access to a list of performed deletions under
Edit > Undo History...
Who is online
Users browsing this forum: No registered users and 57 guests