Add configurable section ordering for custom_scripts, trackers, and challenges #3

Closed
CodyWan-Kenobi wants to merge 1 commit from refs/pull/3/head into main
CodyWan-Kenobi commented 2026-01-05 14:52:44 +00:00 (Migrated from codeberg.org)

Allows users to control the display order of custom_scripts, trackers, and
challenges sections using the section_order array in config.toml.

Example:
section_order = ["custom_scripts", "trackers", "challenges"]

Default order (if not specified): ["custom_scripts", "challenges", "trackers"]

  • Compiles cleanly with zero warnings
  • All existing functionality preserved
  • Tested with various section orders

NOTE: I had to change some nerd font symbols as they weren't rendering

Allows users to control the display order of custom_scripts, trackers, and challenges sections using the section_order array in config.toml. Example: section_order = ["custom_scripts", "trackers", "challenges"] Default order (if not specified): ["custom_scripts", "challenges", "trackers"] - Compiles cleanly with zero warnings - All existing functionality preserved - Tested with various section orders NOTE: I had to change some nerd font symbols as they weren't rendering
thelinuxcast commented 2026-01-07 06:43:29 +00:00 (Migrated from codeberg.org)

I think on this one wouldn't it make more sense to just have the app display them in the order that they appear in the config file?

I'm not opposed to doing it your way, but it may be more complicated than it needs to be.

I think on this one wouldn't it make more sense to just have the app display them in the order that they appear in the config file? I'm not opposed to doing it your way, but it may be more complicated than it needs to be.
CodyWan-Kenobi commented 2026-01-07 06:56:22 +00:00 (Migrated from codeberg.org)

yeah i tried to place a update tracker above challenges in the config.toml and it still appeared last due to the display.rs configuration, I also tried to make things appear in the order they appear in the config.toml and it got really messy so this was the next best thing

yeah i tried to place a update tracker above challenges in the config.toml and it still appeared last due to the display.rs configuration, I also tried to make things appear in the order they appear in the config.toml and it got really messy so this was the next best thing
thelinuxcast commented 2026-01-07 21:05:31 +00:00 (Migrated from codeberg.org)

This PR seems to not have the code to add an automatic space for the challenges. That was this commit: 9663447825

This PR seems to not have the code to add an automatic space for the challenges. That was this commit: [9663447825](https://codeberg.org/thelinuxcast/mattfetch/commit/89c05cc6b34e60ad668fe98d1885ec48b91d2c19)
thelinuxcast commented 2026-01-07 21:07:04 +00:00 (Migrated from codeberg.org)

It should look like this by default: (Ignore the offset underline, that is obviously broken on my end in this formation)

It should look like this by default: (Ignore the offset underline, that is obviously broken on my end in this formation)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
thelinuxcast/mattfetch!3
No description provided.