@@ -84,6 +84,7 @@ local expansions = {
8484--- @field target ? string
8585--- @field datetree ? OrgCaptureTemplateDatetree
8686--- @field headline ? string | fun (): string
87+ --- @field prepend ? boolean
8788--- @field regexp ? string
8889--- @field properties ? OrgCaptureTemplateProperties
8990--- @field subtemplates ? table<string , OrgCaptureTemplate>
@@ -103,6 +104,7 @@ function Template:new(opts)
103104 vim .validate (' target' , opts .target , ' string' , true )
104105 vim .validate (' regexp' , opts .regexp , ' string' , true )
105106 vim .validate (' headline' , opts .headline , { ' string' , ' function' }, true )
107+ vim .validate (' prepend' , opts .prepend , ' boolean' , true )
106108 vim .validate (' properties' , opts .properties , ' table' , true )
107109 vim .validate (' subtemplates' , opts .subtemplates , ' table' , true )
108110 vim .validate (' datetree' , opts .datetree , { ' boolean' , ' table' }, true )
@@ -113,6 +115,7 @@ function Template:new(opts)
113115 this .template = opts .template or ' '
114116 this .target = opts .target or ' '
115117 this .headline = opts .headline
118+ this .prepend = opts .prepend
116119 this .properties = TemplateProperties :new (opts .properties )
117120 this .datetree = opts .datetree
118121 this .regexp = opts .regexp
0 commit comments