You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can "magically" specify the journal you're working with as the first argument that isn't a part of any other argument.
For some commands, like --import, --encrypt, and --decrypt, this is the only extra argument that you'd supply. For instance, jrnl testjournal --import means you want to import to your testjournal.
We're wondering if it would be worth it to validate this argument. Right now, if jrnl doesn't recognize the journal name, it just defaults to the default journal.
We might be able to go a step beyond that and check for common mistakes. For instance, I don't use the "default" journal at all because it's basically a "typo" catcher for when I misspell my journal names. If I am trying to write in my test journal but enter jrnl twst I don't want an entry in my default journal saying "twst". Would it be useful for jrnl to stop and ask if I meant to write to another journal, since the names are similar? Or would that be more annoying than not? Or maybe this could be controlled via a config option with a name like autocorrect_journal_name or similar.
Alternatively (or an addition), would it be worth it to have an explicit argument for the journal name? For instance, if I'm allowed to enter jrnl --journal-name test then my intent is much clearer.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
You can "magically" specify the journal you're working with as the first argument that isn't a part of any other argument.
For some commands, like
--import
,--encrypt
, and--decrypt
, this is the only extra argument that you'd supply. For instance,jrnl testjournal --import
means you want to import to yourtestjournal
.We're wondering if it would be worth it to validate this argument. Right now, if jrnl doesn't recognize the journal name, it just defaults to the default journal.
We might be able to go a step beyond that and check for common mistakes. For instance, I don't use the "default" journal at all because it's basically a "typo" catcher for when I misspell my journal names. If I am trying to write in my
test
journal but enterjrnl twst
I don't want an entry in my default journal saying "twst". Would it be useful for jrnl to stop and ask if I meant to write to another journal, since the names are similar? Or would that be more annoying than not? Or maybe this could be controlled via a config option with a name likeautocorrect_journal_name
or similar.Alternatively (or an addition), would it be worth it to have an explicit argument for the journal name? For instance, if I'm allowed to enter
jrnl --journal-name test
then my intent is much clearer.Beta Was this translation helpful? Give feedback.
All reactions