diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-08-05 13:38:06 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-08-05 13:38:06 -0400 |
| commit | 2e79d1ece2737848234adec61cca77f9f604fce2 (patch) | |
| tree | f7cd8b9985865cee360bc1b21b748309d166594b /pkg/query/outputs.go | |
| parent | 2263b41287ed5dc9c1c4416cc296581f3a466144 (diff) | |
Add headings category to query lang
Diffstat (limited to 'pkg/query/outputs.go')
| -rw-r--r-- | pkg/query/outputs.go | 3 |
1 files changed, 3 insertions, 0 deletions
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": |
