cboxdoerfer / fsearch

A fast file search utility for Unix-like systems based on GTK3
GNU General Public License v2.0
3.27k stars 207 forks source link

custom filters are not working #384

Open veksha opened 2 years ago

veksha commented 2 years ago

Describe the bug custom filters are not working

To Reproduce Steps to reproduce the behavior:

  1. select "Apps" (Приложения) from dropdown menu.
  2. no results

Expected behavior I expect some results

Screenshots image

Desktop (please complete the following information):

Additional context filter works with file:regex:"\.(desktop|DESKTOP)$" (removed one backslash)

when I reset custom filters I get different values: image

cboxdoerfer commented 2 years ago

Hi, thanks for the bug report. Yes, that's a known issue, but you already figured out both possible fixes. Either remove one of the double backslashes manually from the filters or reset to the default filters.

It happens because I changed the behavior of the quotation mark and backslash escape sequences at one point during the development of 0.2, to avoid the need for so many double backslashes.

So you probably had an 0.2 alpha build installed, which saved the default filters with the old format, which doesn't work anymore with the 0.2 stable release.

I guess the best way to permanently fix such issues for future releases, is by not saving the default filters to the config, unless they were edited by the user. I will add that.