Bug 156879 - Add the possibility to save and load custom predefined settings for Text Import (CSV) in Calc
Summary: Add the possibility to save and load custom predefined settings for Text Impo...
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CSV-Dialog
  Show dependency treegraph
 
Reported: 2023-08-23 15:22 UTC by Laurent Haas
Modified: 2023-11-09 11:16 UTC (History)
6 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 Laurent Haas 2023-08-23 15:22:57 UTC
Description:
Every time I use Edit - Paste Special - Paste Special in Calc, and depending on the data format I want to import, I need to adjust those settings in the Import Text dialog. It would be very useful to be able to store the current settings "somewhere" and being able to "load" them when processing the same data format. If you constantly have to import different data, you don't stop adjusting the settings (and sometimes forget some of them). 

Steps to Reproduce:
Proposal :

1. Edit - Paste Special - Paste Special
2. Adjust settings for the given data format  
3. Hit a button "Save profile" or something like that
4. Define a name for this "profile" and an optional comment
5. Save these settings and populate a drop-list with this new profile

Next time, after opening the very same dialog :

1. When choosing a profile in the drop-list, load the predefined settings
2. The settings are set according to the profile
3. You can use them as is, or modify them or even save them with the same name (replacement) or another name

Actual Results:
-

Expected Results:
-


Reproducible: Always


User Profile Reset: No

Additional Info:
-
Comment 1 Stéphane Guillou (stragu) 2023-10-28 08:59:08 UTC
Design/UX team, what do you think of user-defined presets for CSV/TSV/Text Import?
Laurent, Eike and Rafael, I thought you'd also be interested. Feel free to un-CC if not.
Comment 2 Heiko Tietze 2023-10-30 08:18:54 UTC
Text/CSV import is not pasting content. I understand that Laurent wants to paste special once with Formats enabled and then without, for example. Missing the program version - we have as couple of presets for the most relevant use cases, ie. Values Only, Values & Formats, Formats Only, and Transpose All, which makes me wonder what exactly is the configuration. 

Usually I'm all in for the proposed type of interaction but in case of this dialog it seems to be over-engineering.
Comment 3 Laurent Haas 2023-10-30 11:23:19 UTC
Actually, what bothers me the most, is to have to set each column type, the separators etc. I regularly copy/paste from various different tables that are embedded in web pages, and I have to adjust these settings every time for each table, depending on the data.

And for the record, I'm currently using 7.5.7.1 (x86)
Comment 4 QA Administrators 2023-10-31 03:13:45 UTC Comment hidden (obsolete)
Comment 5 Heiko Tietze 2023-10-31 11:35:03 UTC
So we talk about the text import dialog (copy/paste numbers from some other application and use paste special). The dialog remembers the last settings but you cannot store different sets. And the column type depends heavily on the source anyway.

Besides the requested improvement, which I don't like but will discuss in the design meeting, do you know the data provider (Tools > Customize: and add it to the UI of your preference)? 

https://libreoffice-dataproviders.blogspot.com/2021/08/data-providers.html
Comment 6 Laurent Haas 2023-10-31 13:17:42 UTC
No, I didn't know about this feature. Although my data is behind login/password access sites (I'm not sure you can automate that), I'll take a look. Thanks for your help Heiko.
Comment 8 Heiko Tietze 2023-11-09 10:55:47 UTC
We discussed the topic in the design meeting.

The use case is clear and reasonable. But rather implementing a heavy interaction where various configurations can be stored and loaded, we suggest to just remember the last settings. Would be simple for the checkboxes, and in case of the column type it should be applied if the number matches.

However, the column type allows multi-selection and to batch apply the type. And before doing a lot of effort we'd like to ask you to check this workflow first. And describe why it fails, if it does.
Comment 9 Stéphane Guillou (stragu) 2023-11-09 11:16:25 UTC
(In reply to Heiko Tietze from comment #8)
> But rather implementing a heavy
> interaction where various configurations can be stored and loaded, we
> suggest to just remember the last settings. Would be simple for the
> checkboxes, and in case of the column type it should be applied if the
> number matches.
To think about with bug 151007 in mind.