SchrodingersGat / KiBoM

Configurable BoM generation tool for KiCad EDA (http://kicad.org/)
MIT License
352 stars 95 forks source link

Add a mechanism to rename columns #120

Closed set-soft closed 2 years ago

set-soft commented 3 years ago

Description

Column names displayed in the table head are the names of the KiCad fields or the internal names used by KiBoM. Sometimes the names aren't pretty. As an example is common to use manf# for the part name used by the component manufacturer. Using long names for KiCad fields is a bad idea.

This patch allows to rename the columns names so you can use pretty names in the headings.

You must define a COLUMN_RENAME section in the configuration file. Then add entries with the name of the original field and the name you want, separated by a tab (ASCII 9). Here is an example:

[COLUMN_RENAME]
manf#   Manufacturer part number

Note that you must use a tab as separator. Using a space won't work because Manufacturer part number also has spaces.

Limitations

The separator must be a tab.

Additional notes

Niels-Be commented 3 years ago

what is the hold up here? I would really like to see this merged

set-soft commented 3 years ago

Perhaps @SchrodingersGat doesn't really like my implementation. But you can always use:

  1. My fork, I try to keep it synced with this repo. So you can think about it as the experimental branch.
  2. The KiBot internal BoM output. It has more options and flexibility. But it also has a lot of limitations (only Linux, not a plug-in).
SchrodingersGat commented 3 years ago

@set-soft sorry for the delay on this, it had completely fallen off my radar.

If you can please fix the conflicts with preferences.py I would be happy to merge.

BillyPocketNC commented 2 years ago

@set-soft @SchrodingersGat , What needs to change to get this merged?

set-soft commented 2 years ago

Hi @BillyPocketNC !

@set-soft @SchrodingersGat , What needs to change to get this merged?

My fault, I didn't notice @SchrodingersGat asked for conflict resolution. I rebased the patch, fixed the conflicts and also fixed the flake8 error introduced by #145 Now the code passes flake8 tests and doesn't have any conflict.

SchrodingersGat commented 2 years ago

Thanks :)

BillyPocketNC commented 2 years ago

Thanks this will be useful 👍