pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/treemd



Module Name:    pkgsrc
Committed By:   pin
Date:           Wed Dec  3 09:21:37 UTC 2025

Modified Files:
        pkgsrc/textproc/treemd: Makefile cargo-depends.mk distinfo

Log Message:
textproc/treemd: update to 0.4.2

[0.4.2] - 2025-12-02
Fixed
What's Changed

    Add Homebrew installation instructions by @gromgit in #6
    docs: add installation instructions for Arch Linux by @orhun in #7
    fix: display link targets inline to prevent layout shift in link navigator by @kanatti in #9
    fix: prevent infinite scrolling in help popup and refactor help text by @kanatti in #11

Details

    Sub-headings not displayed in content pane - Fixed regression where sub-headings within a section were not rendered in the content pane (#10)
        Added Block::Heading variant to the parser's block types
        Sub-headings now render with proper styling (colored, bold, underlined) matching the screenshot in README
        Content structure and hierarchy are preserved when viewing sections

    Link selection visibility in interactive mode - Selected links now have clear visual highlighting
        Previously only a block-level arrow indicated selection, making it unclear which specific link was selected
        Now selected links show a ▸ prefix indicator that moves with the selection
        Plus cyan background highlight (matching table cell selection style)
        Also applies to images in interactive mode

    Help popup infinite scroll - Prevented scrolling past the end of help content (PR #11)

    Numbered lists with nested code blocks - Fixed markdown display issue where numbered list items containing code blocks would render incorrectly (#8)
        List items now properly contain their nested code blocks, blockquotes, and other block elements
        Parser correctly associates indented blocks with their parent list items
        Renderer handles nested block rendering within list item context

Changed

    Link navigator layout stability - Link targets now display inline to prevent layout shift when cycling through links (PR #9)
        Previously, selected links showed target on a separate line causing list to jump
        Now all links show target inline (e.g., [1] Link Text → target) for stable navigation

Refactored

    Help text module - Extracted help text content into dedicated src/tui/help_text.rs module (PR #11)
        Uses typed HelpLine enum for clean separation of data and rendering
        Compile-time const construction with const fn builders
        Makes help content easily maintainable and extensible

    TUI UI module architecture - Refactored monolithic ui.rs (~1700 lines) into modular components for better maintainability
        ui/mod.rs (~940 lines) - Core rendering orchestration
        ui/util.rs (~265 lines) - Utility functions: centered_area, detect_checkbox_in_text, align_text
        ui/popups.rs (~460 lines) - Popup rendering: help, link picker, search, theme selector, cell edit
        ui/table.rs (~460 lines) - Table rendering: render_table, render_table_row, TableRenderContext
        Added comprehensive unit tests for extracted modules (29 new tests)
        Zero regressions - all 90 tests pass

Technical

    Parser improvements (src/parser/content.rs, src/parser/output.rs)
        Added Block::Heading variant with level, content, and inline elements for sub-heading support
        Added Block::ListItemStart variant to track list item context during parsing
        parse_content() now parses headings within content and creates Block::Heading blocks
        Nested blocks are properly associated with their parent list items instead of being siblings

    UI module organization (src/tui/ui/)
        Clean separation of concerns: utilities, popups, tables, and core rendering
        Each module has focused responsibility and comprehensive test coverage
        Added ContentBlock::Heading rendering with level-appropriate colors and styling
        render_inline_elements() now accepts optional selection index for inline element highlighting
        Links and images in interactive mode get background highlight when selected
        Improved code discoverability and maintainability


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/textproc/treemd/Makefile \
    pkgsrc/textproc/treemd/cargo-depends.mk pkgsrc/textproc/treemd/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/treemd/Makefile
diff -u pkgsrc/textproc/treemd/Makefile:1.6 pkgsrc/textproc/treemd/Makefile:1.7
--- pkgsrc/textproc/treemd/Makefile:1.6 Mon Dec  1 20:35:29 2025
+++ pkgsrc/textproc/treemd/Makefile     Wed Dec  3 09:21:37 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2025/12/01 20:35:29 pin Exp $
+# $NetBSD: Makefile,v 1.7 2025/12/03 09:21:37 pin Exp $
 
-DISTNAME=      treemd-0.4.1
+DISTNAME=      treemd-0.4.2
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=Epistates/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
Index: pkgsrc/textproc/treemd/cargo-depends.mk
diff -u pkgsrc/textproc/treemd/cargo-depends.mk:1.6 pkgsrc/textproc/treemd/cargo-depends.mk:1.7
--- pkgsrc/textproc/treemd/cargo-depends.mk:1.6 Mon Dec  1 20:35:29 2025
+++ pkgsrc/textproc/treemd/cargo-depends.mk     Wed Dec  3 09:21:37 2025
@@ -1,4 +1,4 @@
-# $NetBSD: cargo-depends.mk,v 1.6 2025/12/01 20:35:29 pin Exp $
+# $NetBSD: cargo-depends.mk,v 1.7 2025/12/03 09:21:37 pin Exp $
 
 CARGO_CRATE_DEPENDS+=  addr2line-0.25.1
 CARGO_CRATE_DEPENDS+=  adler2-2.0.1
Index: pkgsrc/textproc/treemd/distinfo
diff -u pkgsrc/textproc/treemd/distinfo:1.6 pkgsrc/textproc/treemd/distinfo:1.7
--- pkgsrc/textproc/treemd/distinfo:1.6 Mon Dec  1 20:35:29 2025
+++ pkgsrc/textproc/treemd/distinfo     Wed Dec  3 09:21:37 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2025/12/01 20:35:29 pin Exp $
+$NetBSD: distinfo,v 1.7 2025/12/03 09:21:37 pin Exp $
 
 BLAKE2s (addr2line-0.25.1.crate) = cc5c422ec48ccef5c2c46379d2f600644609490afafea5020f2020815d1146e6
 SHA512 (addr2line-0.25.1.crate) = c400f3b6ccaff8a1c0d7d82c708a1784b8fd5ba64b6e420e85819d59b1cadb55fa59c852925093b921469f272d1d5140cf12f013ae75d1e1bc85021097df8fc2
@@ -627,9 +627,9 @@ Size (tracing-subscriber-0.3.20.crate) =
 BLAKE2s (tree_magic_mini-3.2.0.crate) = e3c62f82f8c429d5628526addb79cc9cce1ab85a82c92a54f7d2b63473d13668
 SHA512 (tree_magic_mini-3.2.0.crate) = 7151639da4a20f3e0da8059f0b6b05dbb497462ce0ca23df8b07c5e515d49dbb905371259a51f5cba634f62b1dfb9d79aa0ee212e31a74f46f30715a82ee4e8d
 Size (tree_magic_mini-3.2.0.crate) = 15962 bytes
-BLAKE2s (treemd-0.4.1.tar.gz) = 4d17cce48a14bdad0b1e767b7893216673cd55f79cd8c06484f5a77a7836a449
-SHA512 (treemd-0.4.1.tar.gz) = e92f8be766fb55c3f49f49b5f9bb5f9cef82f949301ea623402b25b5d4cbd0a5b6a62e95e41e9944b291f2d7ec4f600a007e45d3a1259d3f5f4e5eec16e6d6c4
-Size (treemd-0.4.1.tar.gz) = 373679 bytes
+BLAKE2s (treemd-0.4.2.tar.gz) = 10d871da6ffdd05f213d3787306fb2fe584d8f3a96833b2cad3a18ad8e11b851
+SHA512 (treemd-0.4.2.tar.gz) = 3fb4a76255bc484aab90d3dc80d416f4e41f6ade933e21775360f9b9dd025305c8c34aef3105d4a1bdc0c262a6092abc07c9a2a2da6a7d33dac271ff90f9146f
+Size (treemd-0.4.2.tar.gz) = 381183 bytes
 BLAKE2s (unicase-2.8.1.crate) = 6a87002c4bd702bb961347b5ecac9404f9a65359b563c199608a3eaaf66195ea
 SHA512 (unicase-2.8.1.crate) = 99a3944a5c987376bdea5fe6c0797e881bc8e6f629c56120ce811c8ebbed0a3ba24617decb74d6939699c8fc994c662eb292869ab407c0ba0ec460a32ede0190
 Size (unicase-2.8.1.crate) = 24088 bytes



Home | Main Index | Thread Index | Old Index