Journal name checking in command line arguments #1620
micahellison
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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