Sometimes we don't want to drop into an editor just to jot down a thought so I'm proposing some config things
--edit
Passing this flag will open the EDITOR on jn "some note" .
This is currently the default behaviour
--no-edit
Passing this will treat the string as the note and will save it in notes.md (tbc)
So for example jn "I had a great day today" will append that string to notes.md
Config
We should be able to configure each of these to be the default.
Some people want to go deep and into an editor (me), others will just want to journal their thoughts (hippies)
What I'm proposing is something like
edit=True|False
If True (the default), it will do as it does now, open up the editor.
If False, does the opposite.
These can then be counteracted with the above --edit and --no-edit flags.
For example if we have edit=false in our config but we want to be dropped in the editor, we can just specify --edit
Sometimes we don't want to drop into an editor just to jot down a thought so I'm proposing some config things
--editPassing this flag will open the EDITOR on
jn "some note".This is currently the default behaviour
--no-editPassing this will treat the string as the note and will save it in
notes.md(tbc)So for example
jn "I had a great day today"will append that string tonotes.mdConfig
We should be able to configure each of these to be the default.
Some people want to go deep and into an editor (me), others will just want to journal their thoughts (hippies)
What I'm proposing is something like
edit=True|FalseIf True (the default), it will do as it does now, open up the editor.
If False, does the opposite.
These can then be counteracted with the above
--editand--no-editflags.For example if we have
edit=falsein our config but we want to be dropped in the editor, we can just specify--edit