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

Idea: Set categories for every day's entries #194

Closed
minthemiddle opened this Issue Jun 25, 2014 · 9 comments

Comments

Projects
None yet
4 participants
@minthemiddle

First off, I love jrnl. Simple, on the point, focused.

I have the habit to write down one sentence for a set of questions/categories every day. Mostly I combine this with a set time to fill in each category, 1 minute to be precise. This way I force myself to think about a few things. It would be fantastic if jrnl could help me with that as well. I guess I could solve this with tags, but maybe this kind of categorization could be built in as well.

@maebert

This comment has been minimized.

Show comment
Hide comment
@maebert

maebert Jun 25, 2014

Owner

Hey, thanks for the suggestion. Help me understand this a bit better: you have basically a template that you fill out every day, right? What is it that you want jrnl to do? Let you provide this template?

Owner

maebert commented Jun 25, 2014

Hey, thanks for the suggestion. Help me understand this a bit better: you have basically a template that you fill out every day, right? What is it that you want jrnl to do? Let you provide this template?

@maebert maebert added the enhancement label Jun 25, 2014

@minthemiddle

This comment has been minimized.

Show comment
Hide comment
@minthemiddle

minthemiddle Jun 26, 2014

Yes, exactly that.

I have a template consisting of 6 questions, namely "What did I achieve today? What did I make progress with? What did I think about? What moved me? What did inspire me? What was I thankful for?".

Of course I can assign 6 tags that I use again and again, run jrnl 6 times, and answer the questions. It would be nice however, if I could set the questions as template that jrnl asks me for input one after another.

Another feature, which in my case is related, would be to set a countdown: You have x minutes to write an entry and then jrnl automatically submits it.

Yes, exactly that.

I have a template consisting of 6 questions, namely "What did I achieve today? What did I make progress with? What did I think about? What moved me? What did inspire me? What was I thankful for?".

Of course I can assign 6 tags that I use again and again, run jrnl 6 times, and answer the questions. It would be nice however, if I could set the questions as template that jrnl asks me for input one after another.

Another feature, which in my case is related, would be to set a countdown: You have x minutes to write an entry and then jrnl automatically submits it.

@jdevera

This comment has been minimized.

Show comment
Hide comment
@jdevera

jdevera Jun 27, 2014

Contributor

The beauty of a simple tool is that you can combine it with other tools. This is a very interesting use case, I'll probably do that myself to prepare for my scrums. Is this not easily scriptable with a quick shell script?

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?'
# All the other questions
Contributor

jdevera commented Jun 27, 2014

The beauty of a simple tool is that you can combine it with other tools. This is a very interesting use case, I'll probably do that myself to prepare for my scrums. Is this not easily scriptable with a quick shell script?

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?'
# All the other questions
@minthemiddle

This comment has been minimized.

Show comment
Hide comment
@minthemiddle

minthemiddle Jun 27, 2014

What a nice simple idea! I was so thinking within Python that I was blind
to shell. Yes, this will totally do it, and I will do it that way! Thanks
for this eye opener...

Am Freitag, 27. Juni 2014 schrieb Jacobo de Vera :

The beauty of a simple is that you can combine it with other tools. This
is a very interesting use case, I'll probably do that myself to prepare for
my scrums. Is this not easily scriptable with a quick shell script?

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?'# All the other questions


Reply to this email directly or view it on GitHub
#194 (comment).

What a nice simple idea! I was so thinking within Python that I was blind
to shell. Yes, this will totally do it, and I will do it that way! Thanks
for this eye opener...

Am Freitag, 27. Juni 2014 schrieb Jacobo de Vera :

The beauty of a simple is that you can combine it with other tools. This
is a very interesting use case, I'll probably do that myself to prepare for
my scrums. Is this not easily scriptable with a quick shell script?

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?'# All the other questions


Reply to this email directly or view it on GitHub
#194 (comment).

@maebert

This comment has been minimized.

Show comment
Hide comment
@maebert

maebert Jun 28, 2014

Owner

Neat solution!! I also thought of that:

jrnl < my_template.txt
jrnl -1 --edit

This will just create a new entry from the template and open your editor with which you can edit it right away (assuming you have an editor set in ~/.jrnl_config) - Will that do?

Owner

maebert commented Jun 28, 2014

Neat solution!! I also thought of that:

jrnl < my_template.txt
jrnl -1 --edit

This will just create a new entry from the template and open your editor with which you can edit it right away (assuming you have an editor set in ~/.jrnl_config) - Will that do?

@manishsuwal

This comment has been minimized.

Show comment
Hide comment
@manishsuwal

manishsuwal Jul 10, 2014

@jdevera What do I name that file and where do I save it? I've been trying to make this work for sometime now with no success.

I'm not familiar with shell scripting, so step by step instructions would be very helpful.

@jdevera What do I name that file and where do I save it? I've been trying to make this work for sometime now with no success.

I'm not familiar with shell scripting, so step by step instructions would be very helpful.

@maebert

This comment has been minimized.

Show comment
Hide comment
@maebert

maebert Jul 10, 2014

Owner

@manishsuwal The easiest if you name this file e.g. my_jrnl.sh and put it into ~/bin. (~ is your home directory). Then you have to make it executable:

cd ~/bin
chmod +x my_jrnl.sh

scripts in ~/bin should be available everywhere, so you can just type my_jrnl.sh in any directory (or just type my and press TAB to autocomplete). Does that help?

Owner

maebert commented Jul 10, 2014

@manishsuwal The easiest if you name this file e.g. my_jrnl.sh and put it into ~/bin. (~ is your home directory). Then you have to make it executable:

cd ~/bin
chmod +x my_jrnl.sh

scripts in ~/bin should be available everywhere, so you can just type my_jrnl.sh in any directory (or just type my and press TAB to autocomplete). Does that help?

@manishsuwal

This comment has been minimized.

Show comment
Hide comment
@manishsuwal

manishsuwal Jul 10, 2014

Wow, this is amazing!

It worked, thank you very much!

One question @maebert : When I use the script, it uses the default time I've set in ~/.jrnl_config. Is there anyway I can make the script use the time when I wrote answers to the questions?

For example, If I run my_jrnl.sh on 2:45PM, make the time 2:45PM on the jrnl, instead of the default time I've set in ~/.jrnl_config?

Wow, this is amazing!

It worked, thank you very much!

One question @maebert : When I use the script, it uses the default time I've set in ~/.jrnl_config. Is there anyway I can make the script use the time when I wrote answers to the questions?

For example, If I run my_jrnl.sh on 2:45PM, make the time 2:45PM on the jrnl, instead of the default time I've set in ~/.jrnl_config?

@maebert

This comment has been minimized.

Show comment
Hide comment
@maebert

maebert Jul 10, 2014

Owner

Simply change the script to jrnl ${1}. $REPLY (the today there causes journal to use the default time).

Owner

maebert commented Jul 10, 2014

Simply change the script to jrnl ${1}. $REPLY (the today there causes journal to use the default time).

@maebert maebert closed this Jul 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment