-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
Allow --edit flag partway through an entry #906
Comments
Hi! Thanks for submitting an issue. It looks like the viewing flag ( In your case, it might look something like this: $ jrnl This is going to be a short entry, so I might as well just put it all on one line, although now it's getting too long and I want to move this into an editor.
[Entry added to default journal]
$ jrnl --edit -1
# Opens the above entry in your editor Does that do what you're intending? |
You know that is slightly less smooth than what I was intending (two commands over one) but I suppose it's close enough that adding the feature wouldn't be worth the additional complexity |
That's fair. I'll think about whether this makes sense to implement or not, but for now that should get you most of the way there. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We're not in a great place to implement this right now (has to be done after refactoring the arg parsing code), but we've talked it over and think it makes sense for jrnl. |
I think it would be really helpful if the --edit flag could be invoked partway through an entry, for example:
This would then open a file with all of the text up until the --edit already in it, so you could keep writing comfortably without copying out of your shell and pasting into your editor.
The text was updated successfully, but these errors were encountered: