

Using environment variables within config values?
New user. I use this on different machines (Linux and MacOS), and would like to have a centralized configuration while also having setting specific to host. I see in the docs where you can specify additional config files conditionally (using ?), wherein a missing file is silently ignored. I could probably accomplish what I'm after using that mechanism, but I'm hoping I can make it a bit cleaner:
I would like to have the "central" file have basic values (font-related, key-bindings, etc.). I would like to have an additional file identified by having the host's name in the file name:
tremere (Linux) -> config.tremere.ghostty
ventrue (MacOS) -> config.ventrue.ghostty
Then have a line like this in the main config:
config-file = $HOME/.config/ghostty/config.$HOST.ghostty
(If the second dot in the file name would confuse parsing, config.$HOST is fine.)
This would allow me to put all the files in the git repo I use to track my dotfiles and config files, then when I launch ghostty on a machine it gets the machine-specific settings, or just falls back to the defaults in the main file. (The use of $HOME is necessary because the home-dir on MacOS is a different path.)
Would this work?
Equivalent of “factory reset”?
So, like a dork I’ve forgotten the admin password for my FreshTomato router. It’s a Netgear R7000. Is there a sort of “factory reset” I can engage, to put it back to stock setting? I have a backup of the configuration, so I’m worried about losing settings.
Thanks!
Need to count list items within a document
Hoping this can be done fairly easily, maybe with some org-babel wizardry (I haven't explored org-babel yet, hence the need for help).
I have a document in which I'm tracking current and planned crafts projects. In the name of not over-extending myself (ha!), I need to know the total count in as simple of a way as possible. There are a several numbered lists under different level-2/3 headings, but of course each one starts at 1 again. I could start the next list at a specific number with [@8], yes, but if I add/remove an item from a list it won't reflect in the following list.
So I'm wondering if there is a way to have a line at the bottom that contains the total number of list items from all lists combined?