-
-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify difference between editor and cli entries in docs #1072
Comments
Hi! Thanks for filing an issue. From what you're describing, it sounds to me like this is what templates are supposed to do. If you write an entry, then the template is ignored in favor of that entry. Maybe they could work a bit differently, but I'm unclear what a template would be expected to do is there's already an entry. Can you please explain in more detail where you expect a template to go if you've already entered |
When you put it like that, it makes sense 😄 So is there a way to add older timestamp and add the entry via an editor ? I want similar behavior except I specify older timestamp Is that possible ? My current workaround :
But this kinda defeats the purpose of using |
Ah, I think I see what you're saying. So, adding new entries in an editor works the same way as adding entries via the command line (only without your shell getting in the way). So, on new entries, How this would work in your example is this:
That's it! |
To clarify, this is what if would look like after editing your entry: timestamp goes here: Template Title
Some text here or anything else in your template. So, the timestamp should be the very first thing in your entry. |
@wren The documentation always refers to the timestamp only when the entry is entered on the command line. It did not occur to me that in editor, I can use timestamp on the first line (I understand that the first line is title. But I never used My workaround was similar but when I manually edit Using timestamp format like |
@mandarvaze You're absolutely right. To resolve this ticket, we'll need to update the docs to clarify how new entries in an editor are or aren't different from cli entries. Thank you for pointing this out! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug Report
Environment
--diagnostic
output:brew install jrnl
Current Behavior
I have multiple journals configured, like
work
anddiary
.I've defined a template in my
~/.config/jrnl/jrnl.yaml
fordiary
work
does not use template.Whenever I create an entry like
jrnl diary
the template is copied just fine, as expected.But when I create a backdated entry like
jrnl diary yesterday at 10pm: backdated entry here
the entry starts out blank i.e. without the contents of the template.Expected Behavior
Template should be used for normal entry as well as for backdated entry.
Repro Steps
Other Information
None.
The text was updated successfully, but these errors were encountered: