From ceeb10113050c6e39b145f88d9d61b3e4ce2cc12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Sun, 26 Feb 2023 12:14:00 +0100 Subject: [PATCH] kicad: add description and datasheet fields --- kicad_lib.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kicad_lib.rb b/kicad_lib.rb index 59de37e..802da24 100755 --- a/kicad_lib.rb +++ b/kicad_lib.rb @@ -76,6 +76,8 @@ categories.each do |category| library = {name: category, table: table, key: "name", symbols: "kicad_symbol", footprints: "kicad_footprint"} library[:properties] = {description: "description"} library[:fields] = [] + library[:fields] << {name: "Description", column: "description", visible_on_add: false, visible_in_chooser: true, show_name: false, inherit_properties: true} + library[:fields] << {name: "Datasheet", column: "datasheet", visible_on_add: false, visible_in_chooser: true, show_name: false, inherit_properties: true} (prop2view + dist2view).each do |prop| next if prop[:property].start_with? "kicad_" library[:fields] << {name: prop[:property], column: prop[:property], visible_on_add: false, visible_in_chooser: true, show_name: false, inherit_properties: true}