Bug 151550 - Default file type for a given file should persist for repeated open's
Summary: Default file type for a given file should persist for repeated open's
Status: RESOLVED DUPLICATE of bug 65017
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks:
 
Reported: 2022-10-15 19:27 UTC by Eyal Rozenberg
Modified: 2022-11-02 14:08 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 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 ***