mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Track modification of entries with --change-time
This commit is contained in:
parent
80a4b0778f
commit
742a16b548
2 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,7 @@ class Folder(Journal):
|
||||||
for entry in entries_to_change:
|
for entry in entries_to_change:
|
||||||
self._diff_entry_dates.append(entry.date)
|
self._diff_entry_dates.append(entry.date)
|
||||||
entry.date = date
|
entry.date = date
|
||||||
|
entry.modified = True
|
||||||
|
|
||||||
def parse_editable_str(self, edited: str) -> None:
|
def parse_editable_str(self, edited: str) -> None:
|
||||||
"""Parses the output of self.editable_str and updates its entries."""
|
"""Parses the output of self.editable_str and updates its entries."""
|
||||||
|
|
|
@ -307,6 +307,7 @@ class Journal:
|
||||||
|
|
||||||
for entry in entries_to_change:
|
for entry in entries_to_change:
|
||||||
entry.date = date
|
entry.date = date
|
||||||
|
entry.modified = True
|
||||||
|
|
||||||
def prompt_action_entries(self, msg: MsgText) -> list[Entry]:
|
def prompt_action_entries(self, msg: MsgText) -> list[Entry]:
|
||||||
"""Prompts for action for each entry in a journal, using given message.
|
"""Prompts for action for each entry in a journal, using given message.
|
||||||
|
|
Loading…
Add table
Reference in a new issue