Skip to content

Generate key combo Markdown#5

Draft
nrichards wants to merge 13 commits into
mainfrom
feat/leadsheet
Draft

Generate key combo Markdown#5
nrichards wants to merge 13 commits into
mainfrom
feat/leadsheet

Conversation

@nrichards

@nrichards nrichards commented May 6, 2024

Copy link
Copy Markdown
Owner

Write all the key combos having images as a series of tables, organizing the combos into columns. Automatically extract this information from existing formatted button-sequence markdown.

  • Tables are identified by nearest heading
  • Columns will be labeled with category names. Names will be one of handful of well-known labels, such as "Performance" and "Editing". Combos will be fuzzy-matched using keywords found in the combo's description, which are ad-hoc associated with those labels.
  • README has updated instructions

Inspiration

nrichards added 6 commits May 5, 2024 08:14
* Add print_markdown_tree for debug
* Add write_seqs_md.py for generating a leadsheet, dumps debug currently
* Minor refactorings
* Add `--md-seqs-out-file` param to trigger feature
* Add a variety of helper API to generate the doc contents
* Require named params for longer ButtonSequence ctor
* Add delayed init to ButtonSequence to populate description
* Fix tables output, format was corrupted
* Remove prototyping clutter
* Start collecting category labels and keywords
* Use self-documenting code style, aka ginormous fn names
* Tidy
@nrichards nrichards self-assigned this May 6, 2024
nrichards added 7 commits May 8, 2024 11:00
* Tweak debugging util to print nicer, and temporarily break on exceptions
* Refactor writing to smaller functions
* Start updating README
* Collect args
* Define button categorization patterns
* Fix default CSV filename
* Using @DataClass to simplify some classes
* Add class to store CSV's category labels and sections
* Passes around categories in-order for future heuristic matching
* Support comments ('#') in categories CSV
* Uses the categories CSV
* Extracts Sections from button sequences
* Lower-cases the CSV category keywords
* Add helper data-functions to core datatype ButtonSequence, because it's convenient. Could use an injectable data store instead.
* Refactor common string formatting
* Cleanup dead code
* Center columns
* Use Heading for title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant