From 2e79d1ece2737848234adec61cca77f9f604fce2 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Tue, 5 Aug 2025 13:38:06 -0400 Subject: Add headings category to query lang --- pkg/query/outputs.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/query/outputs.go') diff --git a/pkg/query/outputs.go b/pkg/query/outputs.go index e3555c1..21c3f4e 100644 --- a/pkg/query/outputs.go +++ b/pkg/query/outputs.go @@ -23,6 +23,7 @@ const ( OUT_TOK_FILETIME // %f %filetime OUT_TOK_AUTHORS // %a %authors OUT_TOK_TAGS // %t %tags + OUT_TOK_HEADINGS // %h %headings OUT_TOK_LINKS // %l %links OUT_TOK_META // %m %meta ) @@ -217,6 +218,8 @@ func ParseOutputFormat(formatStr string) ([]OutputToken, []string, error) { toks = append(toks, OUT_TOK_AUTHORS) case "%t": toks = append(toks, OUT_TOK_TAGS) + case "%h": + toks = append(toks, OUT_TOK_HEADINGS) case "%l": toks = append(toks, OUT_TOK_LINKS) case "%m": -- cgit v1.2.3