jrnl-org / jrnl

Collect your thoughts and notes without leaving the command line.
https://jrnl.sh
GNU General Public License v3.0
6.49k stars 523 forks source link

Inject current date at start of a new entry being composed in an editor #1906

Open alichtman opened 4 months ago

alichtman commented 4 months ago

Use Case/Motivation

When I run $ jrnl, with my editor set to vim, I see an empty editor:

image

If I edit an entry, the datetime is at the top left image

Can we pre-place that value for the editor?

Example Usage

^

Other Information

No response

micahellison commented 2 months ago

Hi @alichtman, thanks for filing this.

I think this is a good idea, though with some caveats. Right now, the default new entry datetime is the moment you finish your entry, and I don't want to break that functionality with a new default.

However, I still want jrnl to support this use case and I think the best long-term way to do that would be through a combination of two enhancements: