{# Find in page. WKWebView has no built-in find UI, so Cmd+F is ours to
implement — see wkFind in the script block below. #}
{# Jump to article (⌘J): a page finder scoped to the active wiki. Distinct
from ⌘F, which searches within the page, and from the top-bar search,
which searches page *content*. This matches titles and goes straight there. #}
↑↓ to choose · ↵ to open · esc to close
{# Order is deliberate: identity (logo, wiki), navigation (history, search),
then actions from most to least frequent, ending in Help. #}
{# Chat. A launcher rather than a section on the Details page: the question is
usually about what you are reading, so it should be reachable while you read
it. Present everywhere; page-scoped where there is a page, wiki-scoped
otherwise. Hidden for guests, who cannot run local CLIs (auth.guest_may). #}
{% if role != 'guest' %}
{%- if cap_state.chat == 'unavailable' %}
{# The tool chat runs isn't on this machine, and that was knowable before the
click. Rendered unpressable and pointed at the fix, rather than opening a
panel whose only possible answer is an error with a command in it. #}
💬
{%- else %}
{%- endif %}
{% endif %}
🌺 Waikiki v{{ version }}
{# Drag to resize the rail. Sits against .layout, not inside .sidebar, which
scrolls its own content. #}