padz 0.10.1

A fast, project-aware scratch pad for the command line
{#- Full pad view template -#}
{#- Shows complete pad content with index, title, and body -#}

{% if pads | length == 0 -%}
{{- "No pads found." | style("empty-message") }}
{% else -%}
{% for pad in pads -%}

{#- Separator between pads (not before first) -#}
{%- if not loop.first %}

{{ " " | style("separator") }}

{% endif -%}

{#- Determine styles based on pad state -#}
{%- set index_style = "list-index" -%}
{%- set title_style = "title" -%}
{%- set content_style = "list-title" -%}
{%- if pad.is_pinned -%}
  {%- set index_style = "pinned" -%}
{%- elif pad.is_deleted -%}
  {%- set index_style = "deleted-index" -%}
  {%- set title_style = "deleted-title" -%}
  {%- set content_style = "deleted-title" -%}
{%- endif -%}

{#- Render header: index + title -#}
{{- pad.index | style(index_style) }} {{ pad.title | style(title_style) }}
{{ " " | style("separator") }}
{{ pad.content | style(content_style) -}}
{%- endfor %}
{% endif %}