Jump to content

Undo deletion of Snippet collection


Recommended Posts

@primeminister Your best bet is to go to Time Machine and find your Alfred.alfredpreferences file from prior to the deletion, as this file will contain all of your snippets. 

 

You can then either replace the entire Alfred.alfredpreferences file, or navigate within the package contents to grab the folder of snippets that matches the one you've accidentally deleted.

 

Cheers,
Vero

Link to comment
  • 5 months later...

Besides putting back the deleted directory from Trash (that is a great work indeed, Andrew), I found we can restore the accidentally deleted folder if you sync "Alfred.alfredpreferences" with Dropbox. Although the preference file looks a file on Mac, you can see the folder on Dropbox.com.

dropbox.png

Screenshot 2018-09-28 15.44.17.png

Screenshot 2018-09-28 15.58.06.png

Link to comment
  • 3 years later...
On 4/17/2018 at 10:02 AM, Andrew said:

This thread has made me take a fresh look at how Alfred deletes snippets, and I've made a change to now move to trash for both snippets / collections and workflows instead of removing them. This will make it into the next Alfred release :)

Don't mean to revive a very old thread, but is this a feature now? I don't need it now, but I always like moving to trash as an intermediate step.

Link to comment
  • 8 months later...
On 4/17/2018 at 7:02 PM, Andrew said:

This thread has made me take a fresh look at how Alfred deletes snippets, and I've made a change to now move to trash for both snippets / collections and workflows instead of removing them. This will make it into the next Alfred release :)

Is this now live? I cannot even find "Trash" in the app...

Link to comment
On 4/16/2018 at 11:46 AM, vitor said:

For those without backups that land here, if you sync your Alfred preferences with Dropbox you can go to the website and recover what you deleted, or revert things to a previous time.

How do I sync with Dropbox?

Link to comment

How did you delete them in the first place? You’re giving information piece meal, but we need as much information as possible to understand your case. It took seven posts to reveal you can’t see your snippets, when that’s the crux of it. Please describe in detail your case and how you got to it.

Edited by vitor
Link to comment
10 minutes ago, AlfredV said:

I have the 4.7

You mean Alfred.alfredpreferences: users/library/application support/alfred

 

5 minutes ago, vitor said:

How did you delete them in the first place? You’re giving information piece meal, but we need as much information as possible to understand your case. It took seven posts to reveal you can’t see your snippets, when that’s the crux of it. Please describe in detail your case and how you got to it.

<deep sigh>  This thread is called Undo deletion of Snippet collection right?

 

ALL my snippets were accidentally deleted because I used the wrong "-". This happened to me once before and I was able to retrieve them then, but no longer know how. My Time Machine has not been active for a while.

 

BTW: the Show in Finder path is incorrect! 

And it is REALLY hard using finder when your name is Alfred (which mine is), because thousands of files come up.

Link to comment

It’s common for people to post in the wrong thread or have a tangential problem which needs a different solution. For example, deleting your snippets collection yourself by accident is different than it disappearing without you knowing why. Those issues have different causes and thus different solutions.

 

You asked about syncing with Dropbox but that’s no longer relevant. It would only have helped if you had them synced beforehand. But I can only tell you this after knowing what you were really trying to do.

 

I’m actively trying to help you, but to do that I need your cooperation. Only you have access to your data and the necessary information to figure out what happened. I can give you clues on how to proceed, but only if I understand the details. I just tried to delete a snippet collection and I’m seeing it in the Trash, so the feature is working. If it didn’t in your case, we need to figure out what is different about your setup.

 

17 minutes ago, AlfredV said:

BTW: the Show in Finder path is incorrect!

 

I don’t know what you’re referring to in this case.

Link to comment
10 minutes ago, vitor said:

It’s common for people to post in the wrong thread or have a tangential problem which needs a different solution. For example, deleting your snippets collection yourself by accident is different than it disappearing without you knowing why. Those issues have different causes and thus different solutions.

 

You asked about syncing with Dropbox but that’s no longer relevant. It would only have helped if you had them synced beforehand. But I can only tell you this after knowing what you were really trying to do.

 

I’m actively trying to help you, but to do that I need your cooperation. Only you have access to your data and the necessary information to figure out what happened. I can give you clues on how to proceed, but only if I understand the details. I just tried to delete a snippet collection and I’m seeing it in the Trash, so the feature is working. If it didn’t in your case, we need to figure out what is different about your setup.

 

 

I don’t know what you’re referring to in this case.

I think I am in the right thread and appreciate your help.

 

What would it look like in Trash? I really thought it would/should end up there.

 

The Show in Finder path that is given when I click this option in the Advanced tab says users/library/application support/alfred But this path did not seem to exist on my Mac: there is no Library map. However, it appeared to be hidden, it is grey in the Show in Finder. I have now unhidden it.

 

 

 

Link to comment
1 minute ago, AlfredV said:

I think I am in the right thread

 

You are!

 

1 minute ago, AlfredV said:

What would it look like in Trash?

 

It will be a folder with the name of your collection, containing each of your snippets as JSON files. Assuming the deletion happened recently, sorting your Trash’s contents by Date Added should be a good bet.

 

4 minutes ago, AlfredV said:

However, it appeared to be hidden

 

Yep, macOS does it by default.

Link to comment
5 minutes ago, vitor said:

 

You are!

 

 

It will be a folder with the name of your collection, containing each of your snippets as JSON files. Assuming the deletion happened recently, sorting your Trash’s contents by Date Added should be a good bet.

 

 

Yep, macOS does it by default.

I found it! It is called "Default Collection" and was dated July 21 for some reason, even though I made changes today. How do I get it back into the right directory?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...