Support bracketed date style when composing new entry #1915
Labels
enhancement
New feature or request
📌
This can't go stale
ready for pr
Okay to start work. Feel free to ask questions.
Use Case/Motivation
Currently, you can use command-line style dates to specify a new entry's date when composing new entries, but not the bracketed dates that jrnl uses in its storage format and when editing entries.
Example Usage
Run
jrnl
with no arguments. Your editor or the standard input editor will appear.You can already do this, which is good and worth keeping:
The entry will be written with tomorrow's date.
However, you should also be able to do this:
Currently, that would create a new entry with today's time, and the entry would contain
[2024-08-26 08:00] Here is my entry on August 26
. This enhancement should instead parse that bracketed value and created a new entry on the specified date, where the entry only contains:Here is my entry on August 26
.Other Information
Hat tip @alichtman for filing #1906 which is one step ahead of this enhancement.
A resolution to this should:
The text was updated successfully, but these errors were encountered: