MartinPacker / filterCSV

Tools to manipulate CSV files in a format suitable for importing into various mindmapping programs - such as iThoughts, Freemind, and MindNode.
MIT License
32 stars 8 forks source link

Automatically assign colours based on RegEx match #129

Closed MartinPacker closed 2 years ago

MartinPacker commented 2 years ago

Could also do shapes, etc

MartinPacker commented 2 years ago

Probably best to implement this in the following way:

  1. Check the regex has only one capturing group. Bail if more than one.
  2. Pass over tree building list of match values from that capturing group.
  3. Apply the colours / shapes etc in each list.

A sophisticated extension might be to allow more than one capturing group - and use the, say, pair of values to assign a colour.

MartinPacker commented 2 years ago

Supporting more than one capturing group turned out to be trivial.

Coding done.

MartinPacker commented 2 years ago

Shipped in https://github.com/MartinPacker/filterCSV/releases/tag/v2.0.