vimsheet.help_registry
Help registry — manages sections, subgroups, and renders help content.
- Usage (at module level in any feature file):
from vimsheet.help_registry import register_section, register_help register_section(“NAV”, “Nav”, order=10) register_help(“NAV”, “h / j / k / l”, “Move cursor”, subgroup=”Cursor”, order=10)
Formula functions are auto-populated from the formula registry.
- vimsheet.help_registry.register_section(key, label, order=0)[source]
Register a help section (tab).
- vimsheet.help_registry.register_help(section, binding, description, *, order=0, subgroup='')[source]
Register a help entry under section with optional subgroup.
- vimsheet.help_registry.get_tabs()[source]
Return [(section_key, compact_label)] in registration order + function categories.
- vimsheet.help_registry.get_entries(section)[source]
Return {subgroup_name: [(binding, description)]} for a section.
- vimsheet.help_registry.get_func_categories()[source]
Return [(category_key, label)] for formula function tabs.
- vimsheet.help_registry.build_section(section, collapsed_groups=None)[source]
Build Rich markup for one section with collapsible subgroup headers.
- vimsheet.help_registry.section_lines(section, collapsed_groups=None)[source]
Return (rich_markup, [(line_index, binding), …]) for a section.
line_index is the 0-based line number in rich_markup.
- vimsheet.help_registry.build_func_category(category, collapsed=False)[source]
Build Rich markup for one formula function category.