Open spenserblack opened 4 months ago
Oh, gosh, I've been using this tool for a long time without knowing that xcolor
takes the -s clipboard
option, so I never needed to pipe to xclip
:facepalm: :sweat_smile: Just found out now from digging into the code.
Still, this could be handy just for compatibility with other use-cases that might involve piping.
For example, I can use
xcolor | xclip -selection clipboard
to copy the color to the clipboard. Whenever I do this, it's copied with the trailing newline. So when I paste it into code, it's slightly annoying because I have to manually remove the newline. For example, if I was going to paste a selected color into a Markdown comment (#347d39
) I wouldn't want the trailing newline.