Bug 138882 - Search in the Template Manager should not find non-template documents
Summary: Search in the Template Manager should not find non-template documents
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Template-Manager
  Show dependency treegraph
 
Reported: 2020-12-13 22:35 UTC by sdc.blanco
Modified: 2022-12-19 13:48 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sdc.blanco 2020-12-13 22:35:31 UTC
1.  Use Tools-Options-Libreoffice-Paths-Template to add a directory to your Templates path that has no templates (i.e., any directory will do) (if using Windows, suggest to use a directory without subdirectories and not too many files)

2.  Open Template Manager  (File-Templates-Manage Templates or Ctrl+Shift+N)

3.  Set Filter to: "All Applications", set Category to "My Templates"

4.  Enter a letter in Search field that corresponds to at least one file in the added directory

Result:  non-template files are displayed. 

Question:  Is this intended/expected behavior?

IMO -- Template Manager should only show files whose file extensions are considered as templates.  (see https://help.libreoffice.org/7.2/en-US/text/shared/guide/convertfilters.html for examples).
Comment 1 Heiko Tietze 2020-12-15 10:03:27 UTC
Yes, "All Applications" should still filter for *.o?t and not *.*. 

Version: 6.4.7.2
Build ID: 6.4.7-6
CPU threads: 8; OS: Linux 5.9; UI render: default; VCL: kf5; 
Locale: de-DE (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 2 sdc.blanco 2020-12-15 10:47:31 UTC
(In reply to Heiko Tietze from comment #1)
> Yes, "All Applications" should still filter for *.o?t and not *.*. 
*.o?t is too restrictive. 

To see extensions recognized by template manager:
https://opengrok.libreoffice.org/xref/core/sfx2/source/control/templatelocalview.cxx?r=b541cd9a#31
Comment 3 QA Administrators 2022-12-16 03:19:22 UTC Comment hidden (obsolete)
Comment 4 sdc.blanco 2022-12-19 13:48:59 UTC
worksforme with:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 98f0dd5e15733ac7f1d929d06ab230b5f04121d5
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL threaded