Open tennox opened 3 months ago
I believe this may not be workable. Using tail some.log | chatgpt
would redirect the input to chatgpt from a pipe rather than a terminal. However, an interactive session requires a terminal to function. This is similar to what happens with echo xxx | vim
:
❯ echo hello | vi
Vim: Warning: Input is not from a terminal
Vim: Error reading input, exiting...
Vim: preserving files...
Vim: Finished.
Actually in vim we can do this echo hello | vim -
, so this could be feasible.
I'd love to
and be dropped into an interactive window (maybe flag
-i
)I've tried a script with
read
and:but then I can only ask one question, not interactively.