Skip to content
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

--tags vs --export tags #814

Closed
krister-ts opened this issue Jan 21, 2020 · 4 comments · Fixed by #991
Closed

--tags vs --export tags #814

krister-ts opened this issue Jan 21, 2020 · 4 comments · Fixed by #991
Labels
enhancement New feature or request 📌 This can't go stale
Projects

Comments

@krister-ts
Copy link

Feature Request

--tags will print tags
--export tags will also print tags

--export tags will make use -o output file, if specified
--tags does not make use of the -o option

Why must -o be restricted to --export?

I find jrnl --tags -o file.txt much easier to type than jrnl --export tags -o file.txt.

@krister-ts krister-ts added 🆕 New! enhancement New feature or request labels Jan 21, 2020
@dbxnr dbxnr mentioned this issue Jan 24, 2020
@micahellison
Copy link
Member

The export functionality is kind of in flux right now, with a couple different layers of varying complexity that need to be fixed up (documented in #713). For that reason, I'm hesitant to start adding this -o parameter to parameters that aren't specifically about exporting.

However, you can still keep your commands concise by using your shell's built-in output features, like so:

jrnl --tags > file.txt

@micahellison micahellison removed the 🆕 New! label Jan 25, 2020
@krister-ts
Copy link
Author

It seems to me that all --export does is format the output and -o redirects to a file.
Would it not make more sense to make --format an alias for --export and have -o always output to file?

@micahellison
Copy link
Member

It would! I think this is worth looking into as we get into #707.

@stale
Copy link

stale bot commented Apr 1, 2020

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.

@stale stale bot added the stale Inactive issue: will be closed soon if no activity label Apr 1, 2020
@wren wren added the 📌 This can't go stale label Apr 4, 2020
@stale stale bot removed the stale Inactive issue: will be closed soon if no activity label Apr 4, 2020
@wren wren added this to To do in Arg parsing Jul 2, 2020
@wren wren moved this from To do to Done in Arg parsing Jul 4, 2020
@wren wren closed this as completed in #991 Aug 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 📌 This can't go stale
Projects
No open projects
Arg parsing
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants