cdown / clipmenu

Clipboard management using dmenu
MIT License
1.14k stars 91 forks source link

clipdel: add -F to match literal instead of regex #229

Closed N-R-K closed 2 weeks ago

N-R-K commented 5 months ago

this adds an -F flag similar to grep to allow matching literals instead of a regex.

useful in scripting context where the script has a literal line to match against. using -F avoids having to escape troublesome regex characters.

cdown commented 2 weeks ago

Oh, and sorry, could you add a test to tests/x_integration_tests? :-)

cdown commented 2 weeks ago

Looks great, thank you!

N-R-K commented 2 weeks ago

I had to change the shebang to /bin/bash since /usr/bin/bash doesn't exist on my system, but then I noticed that I don't have xsel installed currently either. I added a test case, let's see if it passes the CI :)

cdown commented 2 weeks ago

oh, that path is wrong, it should be /usr/bin/env bash. let me fix that. thanks!