Bug 148976 - Add option to autodetect URLs on CSV import
Summary: Add option to autodetect URLs on CSV import
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.3.1.3 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CSV-Import Hyperlink-Calc
  Show dependency treegraph
 
Reported: 2022-05-07 12:28 UTC by swaush
Modified: 2023-07-12 00:16 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample .csv with urls (551 bytes, text/plain)
2022-05-08 16:17 UTC, swaush
Details

Note You need to log in before you can comment on or make changes to this bug.
Description swaush 2022-05-07 12:28:07 UTC
Description:
If a csv file contains a column with hyperlinks these links will be imported as text. 
When importing the file the column type can be changed in the dropdown menu. Would it be possible to add the type Hyperlink or URL to this menu, and then automatically convert the column to links?
Another option would be to have a "Link" option in the cell formatting menu.

Steps to Reproduce:
1.Import CSV file with URLs in a column


Actual Results:
Column is formatted as text

Expected Results:
Column with links


Reproducible: Always


User Profile Reset: No



Additional Info:
There should be an easy way to format it as link
Comment 1 m_a_riosv 2022-05-08 14:56:06 UTC
Can you attach a sample csv file?
Comment 2 swaush 2022-05-08 16:17:35 UTC
Created attachment 180002 [details]
Sample .csv with urls
Comment 3 QA Administrators 2022-05-09 03:29:25 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2023-07-11 05:28:51 UTC
UX team: what do you think? The only related one I found is bug 62828, which would give a lot of flexibility for imports.
Comment 5 Heiko Tietze 2023-07-11 07:40:10 UTC
There is no hyperlink cell aka number format. But when entering a hyperlink manually it's detected automatically. I could imagine to add this to the CSV import, maybe optionally since removing a hyperlink is as tedious as applying.
Comment 6 m_a_riosv 2023-07-12 00:16:36 UTC
Meantime, it is not so difficult to convert to hyperlinks.
Select the cells to be converted into hyperlinks.
With search and replace:
Search for: .*
Replace by: =hyperlink("&")
Mark:
Selected range.
Regular expressions.

Replace all.