File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -176,15 +176,15 @@ function OrgMappings:todo_next_state()
176
176
Date .now ():to_string ()
177
177
)
178
178
179
- local data = item :add_properties ({ LAST_REPEAT = Date .now ():to_string () })
179
+ local data = item :add_properties ({ LAST_REPEAT = ' [ ' .. Date .now ():to_string () .. ' ] ' })
180
180
if data .is_new then
181
- vim .fn .append (data .end_line , state_change )
181
+ vim .fn .append (data .end_line , data . indent .. state_change )
182
182
return item
183
183
end
184
184
item = Files .get_current_file ():get_closest_headline ()
185
185
186
186
if item .properties .valid then
187
- vim .fn .append (item .properties .range .end_line , state_change )
187
+ vim .fn .append (item .properties .range .end_line , data . indent .. state_change )
188
188
end
189
189
end
190
190
Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ function Headline:add_properties(properties)
154
154
end
155
155
return {
156
156
is_new = false ,
157
+ indent = indent ,
157
158
}
158
159
end
159
160
@@ -173,6 +174,7 @@ function Headline:add_properties(properties)
173
174
return {
174
175
is_new = true ,
175
176
end_line = properties_line + # content ,
177
+ indent = indent ,
176
178
}
177
179
end
178
180
You can’t perform that action at this time.
0 commit comments