-
-
Notifications
You must be signed in to change notification settings - Fork 524
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
What does the template option in the configuration do? #827
Comments
Go one below that to recipes. Relevant piece: Using templatesSay you always want to use the same template for creating new entries. jrnl < my_template.txt
jrnl -1 --edit Another nice solution that allows you to define individual prompts comes function log_question()
{
echo $1
read
jrnl today: ${1}. $REPLY
}
log_question 'What did I achieve today?'
log_question 'What did I make progress with?' |
#response_container_BBPPID{font-family: initial; font-size:initial; color: initial;} Thank you. But do I need to change the "template" option in the yaml file? The recipe does not seem to use the yaml file and seems independent of it, so I was curious. From: notifications@git.luolix.topSent: January 31, 2020 22:46To: jrnl@noreply.git.luolix.topReply-to: reply@reply.git.luolix.topCc: raghav.rao32@gmail.com; author@noreply.git.luolix.topSubject: Re: [jrnl-org/jrnl] What does the template option in the configuration do? (#827) Go one below that to recipes.
Relevant piece:
Using templates
Say you always want to use the same template for creating new entries.
If you have an external editor set up, you can use this:
jrnl < my_template.txt
jrnl -1 --edit
Another nice solution that allows you to define individual prompts comes
from Jacobo de
Vera:
function log_question()
{
echo $1
read
jrnl today: ${1}. $REPLY
}
log_question 'What did I achieve today?'
log_question 'What did I make progress with?'
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
|
Good question; it's not very clear. After some tinkering, here's what I think is being said: If you put the function text block on your function log_question()
{
echo $1
read
jrnl today: ${1}. $REPLY
}
log_question 'What did I achieve today?'
log_question 'What did I make progress with?' ...you'll be prompted when you reload your shell ( Commented on these two commands: jrnl < my_template.txt # Imports my_template.txt as the most recent entry
jrnl -1 --edit # Opens the most recent entry in the editor So to answer your original question: The ...
tagsymbols: "@"
template: "/path/to/template.txt"
timeformat: '%Y-%m-%d %H:%M'
version: "2.1.1" |
Thanks @RaghavRao and @heymajor for the question and answer. Sounds like we need to update the documentation. I'm making some notes here on what to change when I get to it:
|
I submitted a pull request that should hopefully take care of these |
Oh I see! PR #829. Like a half hour before that comment. I'll take a look. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
1 similar comment
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Support request
Hello! Thank you for reporting an issue!
If you would fill out the below points, that would make our process a whole lot easier!
Please tell us about your environment:
Jrnl version: 2.1.1
How you installed Jrnl: pip install jrnl
Operating system [MacOS, Linux, Windows?]: Fedora 31 (Linux)
What are you trying to do?
What is the template option in jrnl.yaml? This is not mentioned in the Advanced Usage guide on the webpage. Is this option to be changed to use
jrnl < template.txt
?The text was updated successfully, but these errors were encountered: