Bug 96278 - Make all file types visible in file save dialog
Summary: Make all file types visible in file save dialog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: File-Dialog
  Show dependency treegraph
 
Reported: 2015-12-06 05:20 UTC by Peter
Modified: 2020-11-23 20:18 UTC (History)
4 users (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 Peter 2015-12-06 05:20:03 UTC
I'm sure I'm not alone in that I have .doc, .docx, and others in a folder where I want to save my .odt files.  It is helpful to be able to see the others to insure that I'm putting it in the right place and perhaps to create a name that jives with the folder convention.   It would be helpful to allow "all file types" or a subset like odt, doc, docx, xls, ods, etc. to be seen. 

This is particularly helpful when one is switching from MS Office to Libre Office.

Hey, you guys are GREAT!!! 

Peter
Comment 1 Buovjaga 2015-12-06 13:37:47 UTC
UX: how would you implement this?
Comment 2 Peter 2015-12-06 19:29:17 UTC
I mistakenly thought the question was to me :-P

I wrote a response of which I've pasted the text of below in case anyone wants to see it.

I'm not a programmer and don't know the code so I can only comment on how I might imagine the interface. 

Simplest:  Down in the lower part have a check box that says "show all file types."

Most complex: Have a button labeled "show file types."  When pressed it opens and popup window with a big list of file types and check boxes where each type can be allowed or hidden.  While I'm dreaming: In that pop up are buttons "select all", clear all, and maybe invert selection.  An additional custom type list might be needed by someone.

Mid complexity,  Simplest plus (No pop-up): More checkable boxes than the one "show all file types" where a limited number of file types can be made visible. 

For most people I think the "simplest" would work fine. 
With that it might be nice be able to select an option that lists files by type, even while listing all types. 

The choice should become the default. 

The selection and options would need to be different for the different products (Writer, Base, Cal, etc)

It would be good if when listing multiple file types if the first type listed was the selected "Save as type"

I hope this is what you were looking for and is helpful.
Comment 3 Heiko Tietze 2015-12-06 20:49:10 UTC
As far as I understand from the first posting you would like to have something like "File types: Text documents" as known from the open dialog. Your use case is that saving a file means also to know what other files are located in the directory in order to synchronize the names, for instance. Sounds reasonable to me, although it's a common issue for any application.
I think this would be an easy hack (dev should confirm please). The 'filter' in the standard dialog is usually specified with the default extension but often you can switch to "all files|*.*", which shows all files in this directory. If we take the filter from the open dialog with "Text documents|*.doc,*,odt..." it should not only solve this issue but also add consistency.
Comment 4 Buovjaga 2015-12-07 06:23:38 UTC
Ok let's set to NEW and leave whiteboard as needsDevEval while we wait for dev confirmation of easyhackness.
Comment 5 Robinson Tryon (qubit) 2015-12-10 07:26:40 UTC Comment hidden (obsolete)
Comment 6 Robinson Tryon (qubit) 2016-08-25 04:45:02 UTC Comment hidden (obsolete)
Comment 7 Heiko Tietze 2017-08-22 11:42:45 UTC
The enhancement request is to introduce filters in the save dialogs according the open dialog with 
* all files (*.*) and 
* text documents, spreadsheets, presentations etc. depending on the module

It's likely an easy hack, please add code pointers.

(Removing UX)
Comment 8 Regina Henschel 2017-08-22 13:17:45 UTC
(In reply to Heiko Tietze from comment #7)
> The enhancement request is to introduce filters in the save dialogs
> according the open dialog with 
> * all files (*.*) and 
> * text documents, spreadsheets, presentations etc. depending on the module
> 
> It's likely an easy hack, please add code pointers.
> 
> (Removing UX)

If bug 58685 is considered too, it is no easy hack.

I think, UX is still needed, because it is not clear yet, how the dialog should look and work:
The dialog must provide the option to determine the export filter.
The dialog has an "automatic file extension" option, which needs the exact filter.
There exists the request, that a default name is provided, bug 58685.
The request here does not distinguish between LO dialog or operating system dialog.
The reporter makes several suggestions. It is not clear, which of them should be taken, or perhaps a different way?

On Windows entering an expression with a * as wildcard in the file name field and pressing enter will show only matching files without changing the selected filter. For example "*" will show all files or "*3D*" will show all files, for which the file name contains "3D" or "*.doc" will show old MS Word documents. So for the Windows dialog no action is needed.
Comment 9 Heiko Tietze 2017-08-22 13:54:33 UTC
(In reply to Regina Henschel from comment #8)
> The dialog must provide the option to determine the export filter.
If the user doesn't select explicitly a filter (aka dropdown item other than *) the default is taken (odt for Writer, ods for Calc etc.)

> The dialog has an "automatic file extension" option, which needs the exact
> filter.
See above; if the filename would be specified with a proper extension like foo.doc the respective format could be used since we also show a confirmation dialog in this case

> There exists the request, that a default name is provided, bug 58685.
The default file name would be inserted when the dialog opens. So it's not related to the filter.

> The request here does not distinguish between LO dialog or operating system
> dialog.
I don't see a reason to make the internal dialog different from the system (AFAIK it was introduced as a workaround for kde4)

> The reporter makes several suggestions. It is not clear, which of them
> should be taken, or perhaps a different way?
My take was to implement the filter like in open dialogs.

> On Windows entering an expression with a * as wildcard in the file name
> field and pressing enter will show only matching files without changing the
> selected filter. For example "*" will show all files or "*3D*" will show all
> files, for which the file name contains "3D" or "*.doc" will show old MS
> Word documents. So for the Windows dialog no action is needed.
The filter is of course a convenience function.