Open tallesl opened 1 week ago
Issue persists in v2.0.0.
I made a workaround with ChatGPT. It's just a custom script that uses a temporary output file and uses cat to get it to the clipboard with xclip. https://chatgpt.com/share/66eadf1d-ab08-8003-8c10-385f1b4be36b
#!/bin/bash
# Create a temporary file
TMPFILE=$(mktemp)
# Run code2prompt with the provided options and save the output directly to the temp file using -o option
code2prompt "$@" -o "$TMPFILE"
# Output the contents of the file and pipe to xclip (clipboard)
cat "$TMPFILE" | xclip -selection clipboard
# Delete the temporary file
rm "$TMPFILE"
echo "Prompt copied to clipboard."
I'm using the v1.1.0 binary from the release section.
Here's a workaround: