Files
nuwiki/lua
gffranco ac1db1af1d
CI / editor tests (push) Successful in 48s
refactor(lua): extract shared heading_level/is_table_row; dedup wiki_list in search
Pulls the duplicated heading_level (keymaps/folding/textobjects) and
is_table_row (commands/textobjects) helpers into lua/nuwiki/util.lua. The
copies had drifted — only folding capped level >6 and only commands
nil-guarded is_table_row; the unified versions keep both (cap + nil-safe),
which also aligns the keymap/textobject paths with the server's level cap.
search() now resolves config.wiki_list() once instead of twice.

No behaviour change beyond the >6 cap now applying everywhere. Full editor
harness green (10/10).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 12:19:21 +00:00
..