Skip to content

Cannot get filter to work in filescatalog #253

@bege10

Description

@bege10

02:35:14.591 Keypirinha 2.16.3 (b9833d8) for x64
02:35:14.591 System: WinNT-x64 6.1.7601-ws-0x0100 SP1.0
02:35:14.591 Portable mode
02:35:14.591 Keyboard layout: 00010407
02:35:14.591 Monitor #1: Name[\.\DISPLAY1] Rect[0, 0, 1920, 1080] DpiScale[1.40] PRIMARY

To get rid of the many "uninstall" entries in the start menu I moved the "extra_paths" from apps.ini to "paths" in the filescatalog.ini and added a filter. Without the filter all files are found. As soon as I add a filter no files are found at all.

What is wrong with this entry?:

paths =
    F:\Einstellungen\KP Utilities\**\*.lnk
    F:\Einstellungen\QL\**\*
    F:\ProgramData\Microsoft\Windows\Start Menu\Programs\**\*.lnk
    F:\Users\bege\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\**\*.lnk
filters =
    - uninstall*.lnk
    - *uninstall.lnk

The console entry shows this:

** Profile "StartmenusAndTools":
    internal_name   "startmenusandtools"
    include_hidden  no
    include_dirs    no
    include_files   yes
    max_depth       -1
    trim_extensions ('.lnk')
    file_item_label "{clean_name}"
    file_item_desc  <none>
    dir_item_label  "{clean_name}"
    dir_item_desc   <none>
    callback        default_scan_callback
    paths           F:\Einstellungen\KP Utilities\**\*.lnk
                   F:\Einstellungen\QL\**\*
                   F:\ProgramData\Microsoft\Windows\Start Menu\Programs\**\*.lnk
                   F:\Users\bege\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\**\*.lnk
    filters         - *uninstall.lnk
                   - uninstall*.lnk
03:15:54.285 FilesCatalog.FilesCatalog: Cataloging 1 profile...
03:15:54.504 FilesCatalog.FilesCatalog: Profile StartmenusAndTools: found 0 items in 0.2 seconds
03:15:54.504 FilesCatalog.FilesCatalog: Total: 0 items found and cataloged in 0.2 seconds

without filters this

03:36:47.324 FilesCatalog.FilesCatalog: Activated profiles (1):
** Profile "StartmenusAndTools":
   internal_name   "startmenusandtools"
   include_hidden  no
   include_dirs    no
   include_files   yes
   max_depth       -1
   trim_extensions ('.lnk')
   file_item_label "{clean_name}"
   file_item_desc  <none>
   dir_item_label  "{clean_name}"
   dir_item_desc   <none>
   callback        default_scan_callback
   paths           F:\Einstellungen\KP Utilities\**\*.lnk
                   F:\Einstellungen\QL\**\*
                   F:\ProgramData\Microsoft\Windows\Start Menu\Programs\**\*.lnk
                   F:\Users\bege\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\**\*.lnk
   filters         <none>
03:36:47.324 FilesCatalog.FilesCatalog: Cataloging 1 profile...
03:36:47.512 FilesCatalog.FilesCatalog: Profile StartmenusAndTools: found 710 items in 0.2 seconds
03:36:47.527 FilesCatalog.FilesCatalog: Cataloged 710 items in 0.0 seconds
03:36:47.527 FilesCatalog.FilesCatalog: Total: 710 items found and cataloged in 0.2 seconds

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions