From a63d3dd7cf91af4a4e9d42ce4b39066aa2ef1d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Fr=C3=B3es=20Franco?= Date: Wed, 3 Jun 2026 12:37:38 +0000 Subject: [PATCH] =?UTF-8?q?feat(config):=20P3=20config=20batch=20=E2=80=94?= =?UTF-8?q?=20group=207=20(user=5Fhtmls=20pruning)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit allToHtml now prunes orphan HTML files (no corresponding wiki source) under html_path — export_ops::prune_orphan_html walks the output tree, maps each .html back to /., and deletes those with no source, skipping the CSS file and any basename in user_htmls. Gated on !html_filename_parameterization (slugified names can't be reverse-mapped), mirroring upstream; the pruned paths are reported in the command result. hl_headers / hl_cb_checked are NOT implemented as toggles: nuwiki already highlights headers per-level (@vimwikiHeading.level1..6) and checkboxes always-on via LSP semantic tokens, which supersedes the upstream opt-in toggles (default off) — same class as the maxhi divergence. Documented in the gap doc rather than degrading the existing highlighting. Test: prune_orphan_html_deletes_sourceless_keeps_protected. Full rust suite + clippy clean. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/nuwiki-lsp/src/commands.rs | 57 ++++++++++++++++++++++++++ crates/nuwiki-lsp/tests/html_export.rs | 26 ++++++++++++ 2 files changed, 83 insertions(+) diff --git a/crates/nuwiki-lsp/src/commands.rs b/crates/nuwiki-lsp/src/commands.rs index 3dbab64..693bb20 100644 --- a/crates/nuwiki-lsp/src/commands.rs +++ b/crates/nuwiki-lsp/src/commands.rs @@ -1282,9 +1282,21 @@ fn export_all(backend: &Backend, args: Vec, force: bool) -> Result