padz 1.2.0

An ergonomic, context-aware scratch pad for the terminal — a good Unix citizen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{#- Unified rendering for modification commands -#}
{#- Expects: start_message, pads (list of PadLineData), trailing_messages, peek (bool), col_* -#}

{#- Start message -#}
{%- if start_message -%}
[info]{{ start_message }}[/info]{{ "" | nl }}
{%- endif -%}

{#- Affected pads list -#}
{%- for pad in pads -%}
{%- include "_pad_line.jinja" -%}
{%- endfor -%}

{#- Trailing messages (info, warnings, errors) -#}
{%- for msg in trailing_messages -%}
{{ msg.content | style_as(msg.style) }}{{ "" | nl }}
{%- endfor -%}