casouri / xeft

Fast, interactive Emacs note searching
89 stars 9 forks source link

Ignored files are not kept after searches #5

Closed Nathan-Furnal closed 3 years ago

Nathan-Furnal commented 3 years ago

Hi again,

I think the ignored files are only ignored when xeft is first called but not afterwards.

For example, create a directory with one accepted file test.txt and another ignored file like test.log. When you first run M-x xeft then only test.txt will show up but if you type something in the search bar which matches both files then test.log will also show up!

casouri commented 3 years ago

Did you change the value of xeft-ignore-extension after the database is created? In that case, since the database has already indexed the files, they will appear when you search. If you don't want to see those files, simply delete the database and start xeft again.

Nathan-Furnal commented 3 years ago

Fair enough, thanks for the help!

casouri commented 3 years ago

Thanks for reporting. I've updated the documentation for xeft-ignore-extension to explain that quirk ;-)

Nathan-Furnal commented 3 years ago

Good stuff! One improvement I could see being useful though is have a list of allowed files extensions rather than a exclusion list. Right now I export org files to LaTeX and then PDF, which generates a lot of intermediate files I have to ignore. Having allowed files instead is for example the choice deft makes with deft extensions.