Bug 151550

Summary: Default file type for a given file should persist for repeated open's
Product: LibreOffice Reporter: Eyal Rozenberg <eyalroz1>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: libreoffice-ux-advise
Priority: medium Keywords: needsUXEval
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=151553
Whiteboard:
Crash report or crash signature: Regression By:

Description Eyal Rozenberg 2022-10-15 19:27:24 UTC
If, when opening a file using File | Open (in any of the modules), I choose a different file type / import filter other than the default choice of autodetection ("All files") - I expect this choice to be persisted next time I select the same file in the file open dialog.

At the very least, persistence should continue until LibreOffice is closed, and possibly even beyond that, in subsequent executions of LO.

Motivation: When you to force a different import filter than the one the app chooses for you, you will likely want to do the same whenever opening the file, at least unless it's changed fundamentally. Thus for example interpreting a text file as CSV content, or an HTML file as plain text.
Comment 1 V Stuart Foote 2022-10-15 20:24:20 UTC
We quickly bump up against the "Document Service" handling that each module utilizes.

What's defined is the default handler for each module. Simply put, using something undefined by typedetection [1] requires the filter listing--or of navigating focus into a difference LO module you'd like to use. 

Maxim was thinking of a tweak to document history so reopening from our MRU recorded to user profile would make a specific module assignment, see bug 65017 and guess that is still valid.

Beyond that, the os/DE provided file manager or LibreOffice's own file dialogs, can not pre-filter the "All files" list or preload a filter from previous openings. Each is a unique instantiation and gets the full set of defaults.  And, not clear there is sufficient use case to spend the dev effort on the native coude it would require.

=-ref-=
[1] https://opengrok.libreoffice.org/xref/core/filter/source/config/cache/typedetection.cxx
Comment 2 Heiko Tietze 2022-11-02 14:08:46 UTC

*** This bug has been marked as a duplicate of bug 65017 ***