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

Add option to output to a file #356

Open
thunfisch987 opened this issue Feb 7, 2024 · 3 comments
Open

Add option to output to a file #356

thunfisch987 opened this issue Feb 7, 2024 · 3 comments

Comments

@thunfisch987
Copy link
Contributor

Since there are a lot more entries now i think being able to output to a file would be quite handy.
I don't know which format would be best (and also easy to implement in a bash script)

@flexagoon
Copy link
Contributor

flexagoon commented Feb 11, 2024

Can't you just redirect output of xdg-ninja to a file?

xdg-ninja > somefile.md
cat somefile.md

@thunfisch987
Copy link
Contributor Author

Sorry, i didn't clarify enough

i meant something more data-oriented like json or csv or something like that

@thunfisch987
Copy link
Contributor Author

Also, xdg-ninja > somefile.md
is only useful when using it with cat/less/etc... because of the (color) escape codes used for the terminal
And since it still does not have a no-color mode it currently always includes them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants