xdg-ninja icon indicating copy to clipboard operation
xdg-ninja copied to clipboard

Add option to output to a file

Open thunfisch987 opened this issue 1 year ago • 3 comments

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)

thunfisch987 avatar Feb 07 '24 00:02 thunfisch987

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

xdg-ninja > somefile.md
cat somefile.md

flexagoon avatar Feb 11 '24 16:02 flexagoon

Sorry, i didn't clarify enough

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

thunfisch987 avatar Feb 11 '24 21:02 thunfisch987

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

thunfisch987 avatar Feb 11 '24 21:02 thunfisch987