Feature Request: Mark for Deletion

Discussion related to "Everything" 1.5 Alpha.
Post Reply
mohsyn
Posts: 29
Joined: Thu Jul 09, 2020 9:26 am

Feature Request: Mark for Deletion

Post by mohsyn »

Hi,
It is wonderful to search for files in media which may be offline.
I would like to request you to add a feature called "mark for deletion" for any file/folders, so that when particular media is connected it will delete automatically.
It will be a big time and trouble solver feature.
Thanks
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Feature Request: Mark for Deletion

Post by NotNull »

Similar suggestion: Flag filename of file on offline backup external hardrive(s) for deletion

Right now I would approach this as follows:

Generate the list of files:
  • Select the files/folders that you want to mark for deletion
  • Menu:File => Export
  • Set Save as type to EFU Everything File List (*.efu)
  • Check Export selection only
  • Enter filename
  • Press OK
Whenever your disk is online again:
  • In Everything, Menu:File => Open File List
  • Select your EFU file list
  • Select all files (CTRL + A)
  • Press Delete button
  • Files/folders will be deleted
Note that an EFU File List is static, so deleting the files will not change the EFU file. Meaning that the deleted files will still be shown in the list.

When done, close the EFU file to return to your regulatr Everything: Menu:File => Close File List


Instead of selecting all files at once when generating the list of files, you can also:
  • Open the File List Editor (Menu:Tools => File List Editor )
  • Drag files fromn the main Everything window to the File List Editor
  • When ready, save the list in the File List Editor (Menu:File > Save )
mohsyn
Posts: 29
Joined: Thu Jul 09, 2020 9:26 am

Re: Feature Request: Mark for Deletion

Post by mohsyn »

Thanks NotNull
That is a clever way to achieve the same however it would still be extremely convenient to just right click and > mark for deletion and forget
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Feature Request: Mark for Deletion

Post by NotNull »

Yeah, I got that. But I can't change the code, so this is currently the best option (that I could think of ..)
mohsyn
Posts: 29
Joined: Thu Jul 09, 2020 9:26 am

Re: Feature Request: Mark for Deletion

Post by mohsyn »

I tried writing a code snippet which allows me to give the right click > mark for deletion feature and handle it automatically when media is detected.

however registy hack to add right click cmd allows me to add files which are present but fails for absent media obviously.

I am just curious to know if there is a way to receive full path / media from everything to a context handler for an item not on connected media.

Thanks in advance!
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: Feature Request: Mark for Deletion

Post by void »

Simple PIDLs might work..

A Simple PIDL always uses the desktop for the parent folder with a filename.

Everything will only use indexed file information for simple PIDLs, such as size and date modified.



To enable simple PIDLs for context menus:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    context
  • Select: context_menu_simple_pidl
  • Set the value to: true
  • Click OK.
Please note that this will make some menu items not appear for virtual folders, such as restore on recycle bin items.



Another idea to "mark" items in Everything 1.5:
From the Index menu, check Enable Result Omissions.
From the Index menu, check Clear Result Omissions (works best if you start with an empty list)
To "mark" a file or files, right click your selection and click Omit.
The selected files will disappear from your results.
OMIT is shown in the status bar.

When you are done "marking" files:
From the Index menu, uncheck Enable Result Omissions.
Change your search to:
omitresults:
Your "marked" files will be shown.



Omit Results
context_menu_simple_pidl
mohsyn
Posts: 29
Joined: Thu Jul 09, 2020 9:26 am

Re: Feature Request: Mark for Deletion

Post by mohsyn »

Omit results seems like a better integrated solution and we can select / filter and delete as needed when media is connected.

However, omitresults: in search bar shows nothing on my system. I am using 1.5.0.1367a x64
vsub
Posts: 474
Joined: Sat Nov 12, 2011 11:51 am

Re: Feature Request: Mark for Deletion

Post by vsub »

How about using "Set Run Count" for the items you want to delete(you can also set a hotkey for this from the )
For example you set the run count to an item to 1000 and then when you search for(or create a bookmark with it)
runcount:1000
it will display all items that have run count of 1000
If you happen to run that file after setting the run count,you can search for runcount:=>1000

The select all and delete
You can also add the drive letter to the seach so it will display items that are only on that drive
It's not automatic deletion but very close to and I have some ideas for combining autohotkey to make it automatic with Everything help
mohsyn
Posts: 29
Joined: Thu Jul 09, 2020 9:26 am

Re: Feature Request: Mark for Deletion

Post by mohsyn »

@vsub that is a very creative solution, however I could not get the shortcut to work. Thanks for sharing!

@void - Omit results seems like a viable solution. Just request you to look into why omitresults: does not show results ( i can see the entries marked as omit result when I go to Index > Organize Result Omissions... )
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: Feature Request: Mark for Deletion

Post by void »

however I could not get the shortcut to work. Thanks for sharing!
What happens?

Enable Run History from Tools -> Options -> History if the Set Run Count option is missing from the right click menu.
I would use a unique number to mark files, for example: 666 to delete

Then you can find these files with runcount:666



omitresults: will only work if you disable Index -> Enable Result Omissions
(If Enable Result Omissions is checked, your results from the omitresults: search will be omitted!)
Post Reply