💾 Archived View for d.moonfire.us › blog › 2023 › 01 › 29 › a-week-of-dependicies captured on 2023-11-14 at 09:04:38. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-04-26)

-=-=-=-=-=-=-

A Week of Dependencies plus Nor Curse Be Found 13

Up a Level

I'm trying to get get back to the one-week iterations/sprints for my personal projects. As one of my goals for the year, I want to write at least one short story or a chapter a month. “At least” being the goal since I want to write more, but writing Fedran[1] is still a struggle because of burnout, entanglement[2], and just life.

1: https://fedran.com/

2: /tags/entanglement-2021/

Markdowny

So I dedicated this week to writing chapter thirteen of Nor Curse Be Found[3], but in the process of setting it up, I finally hit the point where bugs in Markdowny[4] were too much for me. The main one is that I used the wrong shebang in the scripts but didn't realize it until I switched to NixOs[5]. The key part is that I need to use `/usr/bin/env bash` for all my shebangs instead of assuming the path to `bash`.

3: /tags/nor-curse-be-found/

4: /tags/markdown/

5: /tags/nixos/

# !/usr/bin/env bash

So that meant I needed to go into that project to fix it (and add a few features I've been wanting). But that was so old that I spent a few days bringing it up to fix my new project layout[6] so I had a consistent environment. While doing that, I ended up on yet another tangent to create a script that could create my script files. (Not sure where to store that, to be honest.)

6: /tags/project-layout/

But then I finished the script to get the layout working to get Markdown working. After another day or so to coerce `markdowny` into Woodpecker CI[7], I was finally ready to actual write a feature I've been needing for a while.

7: /tags/woodpecker-ci/

New Feature

To submit entries to my writing group, I need to post a “events so far” document because it could be weeks or months between submissions. I use `markdowny` to do that with the `list` command:

$ markdowny list chapters/*.md | head -n 5
1. Always Moving: While Linsan waits for her mother to come home, she bounces around on the furniture and talks to her father. She announces that she has named a violin her father is making Palisis and learns that the violin is for her father's first wife who got married to her mother's best friend.

2. Early Lessons: Years later, Linsan is learning how to play the violin from her father. The lesson is interrupted when Dukan, her father's best friend and manager for the business, visits in a panic to tell him that the family's workshop in the valley is on fire.

3. Home Early: Unable to visit the burnt remains of the family's workshop, Linsan comes home to find her father work in depression. He had given up working on instruments and switched to writing articles about music. She goes into the attic to put some books away and finds Palisis in a corner, returned after Marin's death. She plays it, but then finds out that no one had ever played it before.

I needed a bit more details, so I decided to expand it to use Handlebars to give me a template for the chapters and to access all of the components inside the YAML header.

$ markdowny list ~/src/fedran/sources/allegro/chapters/*.md --template='- Chapter {{_number}} - {{{title}}} => {{{summary}}}' --trim-whitespace | head -n 5
- Chapter 1 - Always Moving => While Linsan waits for her mother to come home, she bounces around on the furniture and talks to her father. She announces that she has named a violin her father is making Palisis and learns that the violin is for her father's first wife who got married to her mother's best friend.
- Chapter 2 - Early Lessons => Years later, Linsan is learning how to play the violin from her father. The lesson is interrupted when Dukan, her father's best friend and manager for the business, visits in a panic to tell him that the family's workshop in the valley is on fire.
- Chapter 3 - Home Early => Unable to visit the burnt remains of the family's workshop, Linsan comes home to find her father work in depression. He had given up working on instruments and switched to writing articles about music. She goes into the attic to put some books away and finds Palisis in a corner, returned after Marin's death. She plays it, but then finds out that no one had ever played it before.
- Chapter 4 - Solace in Memories => As Linsan frequently did, she visited the family's ruins after school. The spot gave her peace despite everything they had lost. However, a bully from school, Dukan's daughter Brook, follows after her and they fight. During the brawl, they both manifest their powers: Linsan with music and Brook with concussion powers.
- Chapter 5 - Bitter Partings => Linsan comes limping home after her fight with Brook. Her parents are surprised she is there, but then Dukan and Brook show up. Dukan has his daughter apologizes and then offers to send money to the Sterlig's. Linsan's father tries to refuse it, but Dukan phrases it as helping Linsan and they accept.

It might not be much, but it was something I've been looking for. It also means that I can include things like POV, when it happened, or other details in the list to help work timelines, locations, and the like. Or use it as a simple index page generator for HTML and Gemini pages, if someone found a use for that.

Tables

Of course, there is also a table approach to the same thing:

markdowny table chapters/*.md --fields _basename title when.start locations.primary | head -n 5
| _basename     | title      | when.start           | locations.primary |
|---------------|------------|----------------------|-------------------|
| chapter-01.md | Rutejìmo   | 1471/3/28 MTR 4::22  | Shimusogo Valley  |
| chapter-02.md | Confession | 1471/3/28 MTR 4::75  | Shimusogo Valley  |
| chapter-03.md | Morning    | 1471/3/28 MTR 11::71 | Shimusogo Valley  |

Nor Curse Be Found

Despite all that, I got another chapter of Nor Curse Be Found written this afternoon. It isn't polished as I hope, I'm still struggling with the “feel” for the chapter and how the prince responds to things, but that is also something I have to finish to really understand and go back to edit.

Overall, it was a good day (it took me three days to write the chapter).

Metadata

Categories:

Development

Writing

Tags:

Entanglement 2021

Fedran

Markdowny

NixOS

Nor Curse Be Found

Project Layout

Woodpecker CI

Footer

Below are various useful links within this site and to related sites (not all have been converted over to Gemini).

Now

Contact

Biography

Bibliography

Support

Fiction

Fedran

Coding

The Moonfires

Categories

Tags

Privacy

Colophon

License

Mailing List

https://d.moonfire.us/blog/2023/01/29/a-week-of-dependicies/