gramify icon indicating copy to clipboard operation
gramify copied to clipboard

feature: process stdin and/or to stdout

Open roycewilliams opened this issue 1 year ago • 3 comments

For some workflows, it would be very helpful if gramify could operate on stdin and/or send output to stdout.

roycewilliams avatar Sep 01 '23 01:09 roycewilliams

STDIN is generally possible because gramify processes line-by-line. STDOUT has some issues however because gramify outputs a lot of duplicates. What approach would you recommend here for your considered usecases? Let the user figure it out, or not implement it to force the proper handling of the duplicates?

0xVavaldi avatar Sep 02 '23 08:09 0xVavaldi

Hot take: let the user decide what to do with duplicates.

roycewilliams avatar Sep 10 '23 06:09 roycewilliams

Added a partial implementation of --stdout, but I quickly noticed that the way I handle file input & output needs a pretty big overhaul to neatly handle the implementation of stdin and out for more complex setups. So I would need to find some time and motivation to rework that

0xVavaldi avatar Sep 24 '23 11:09 0xVavaldi