0

I lost some data since I edited the wrong file.

What had happened?

I used Super-F to find a file called "foo.txt".

I edited the file, but not the file in ~/doc/foo.txt, but a very old file in ~/tmp.

How can I avoid this in the future?

Is there a way to tell the indexing engine to skip certain files?

My question is not about recently-used files and not about filtering the search result. I want to suppress the indexing of some directories.

guettli
  • 1,765

1 Answers1

0

If you click on the Filter Results you can restrict the files found in several ways (age, size, type). When you find a file, clicking on it once opens buttons, one of which is Show in Folder. Click that, and the folder containing the file will be opened. The Folder Name is also displayed.

A good practice is to have expectations about the contents of the file you're about to edit, and if the expectations are not met when you open the file, stop and ask yourself what's happening.

Unless you can predict all the files and folders you might make mistakes with, restricting indexing is a bad idea. Also, what if the file you need to find is in a folder you have suppressed indexing on?

For the pedants among us (I include myself): "Folders" are really "directories", and probably should be called "directories".

waltinator
  • 37,856