KiCad_BOM_Wizard icon indicating copy to clipboard operation
KiCad_BOM_Wizard copied to clipboard

when datasheet field is an URL, produce a link in the HTLM output

Open aewallin opened this issue 8 years ago • 4 comments

When the datasheet field for a part is populated with an URL (e.g. something starting http) it would be nice if there was a working link produced in the HTML output. now all I seem to get is a plain text with the datasheet field contents.

aewallin avatar Oct 21 '17 15:10 aewallin

Hiya, That's a good idea.

I'm thinking any field with the following URL format will qualify to a URL? http://aaaa.bbb http://aaa.bbbb.ccc https://aaaa.bbb https://aaa.bbbb.ccc aaaa.bbb aaa.bbbb.ccc

If so I'm thinking I could use this Regex: ((http|https)://)?([\w_-]+(?:(?:.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])

That said, I'l make sure that I add the option to disable it in case the output is meant to a clean export.

  • Ron

HashDefineElectronics avatar Nov 03 '17 09:11 HashDefineElectronics

ping ;) any progress during last 12 months?

aewallin avatar Nov 24 '18 11:11 aewallin

@aewallin Sorry I've not been able to find the time to implement the URL stuff. The sad thing is that its likely wont be worked on until after the new year. :/

To be honest, I'm currently conflicted whether or not I should re-implement the code on Python. Its mostly because KiCad has better support for Python. :(

HashDefineElectronics avatar Dec 04 '18 09:12 HashDefineElectronics

I'm all for a python re-write! ;) I could probably help/contribute if someone else sets up the basics.

aewallin avatar Dec 04 '18 12:12 aewallin