cdown / clipmenu

Clipboard management using dmenu
MIT License
1.11k stars 90 forks source link

clipmenud problem copy a row from libreoffice table #143

Closed kristoferus75 closed 3 years ago

kristoferus75 commented 3 years ago

Hi !

I have an issue if i copy a for example 170 items a row from libreoffice table !

It takes a very long time that dmenu opens the clipboard !

If i clean the clipboard all work normally again

can i optimize this ?

Thanks

regards

cdown commented 3 years ago

Can you please be more clear about what you mean by "items"? We already limit line length to 300 characters, so unless you have a crazy high CM_MAX_CLIPS, I'm not immediately seeing why this should happen. Please give an example input.

kristoferus75 commented 3 years ago

sorry itmes are only text like this:

192.168.1.1 192.168.1.2 192.168.1.3 etc 170 times

this is my script that i open if i want to paste something:

#!/bin/bash
export CM_LAUNCHER=dmenu
export CM_DIR=~/.cache
export CM_HISTLENGTH=90
export CM_MAX_CLIPS=100

case "$1" in
        show)
                /usr/bin/clipmenu -c -l 12 -p Clipboard: -i -fn Terminus:size=16 ;;
        clean)
                clipdel -d ".*" && systemctl --user restart clipmenud.service \
                && notify-send "Clipboard Content deleted" -u low \
                || notify-send "Errors occurred while Clean Up" ;;
esac
kristoferus75 commented 3 years ago

hmm i dont know why but now it works without problem

cdown commented 3 years ago

Feel free to reopen if you have a repro case.