bharbron / hexbook-semantic

An Electron-React-Redux-Semantic-UI application for automatically generating a hexcrawl campaign notebook from random tables.
5 stars 3 forks source link

Create "Inline Index" template plugin #57

Open bharbron opened 5 years ago

bharbron commented 5 years ago

Create a new template plugin for an "Inline Index". This will be similar to the existing "Index" template, except for each table entry, it will display text, entryDetails, and references all on a single line.

For now, can just implement the Preview, EditProperties, and EditMetadata parts of this. (We haven't implemented any finalization processing for template plugins yet.) The Preview will require some string manipulation trickery. We want to ensure that each text, entryDetail, and references item is separated by a period and single space. But we need to ensure we don't end up with, for example, two periods followed by a space, a space followed by a period followed by a space, a question mark followed by a period, followed by a space, etc.

The string manipulation that we use on the preview will also be used for the eventual finalization processing.