Single characters (without trailing line break) won't get recognized/displayed by clipcat
Closed this issue · 1 comments
LnLcFlx commented
When I do
echo 'a' | xclip -selection clipboard
a\n
gets shown by clipcatctl list
but when removing the trailing line break
echo -n 'a' | xclip -selection clipboard
or
echo 'a' | xclip -rmlastnl -selection clipboard
it does not while xclip -out -selection clipboard
does show a
(a%
).
Same problem when doing Ctrl-C
on single characters in a browser for example.
Notice that this has nothing to do with the line break character itself but rather that there is no second character:
For example
echo -n 'aa' | xclip -selection clipboard
works again.
LnLcFlx commented
Turns out this is due to the default filter_text_min_length = 1
in clipcatd.toml
.
Setting this to 0 fixes it.