wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit f01aeb4f3f63fea13e364b984855bfe41e448f67
parent 3d33b4459eeb66388fe578d3eb6d39bdaef0cbf2
Author: Denis Grelich <denisg@suckless.org>
Date:   Wed, 27 Dec 2006 13:25:41 +0100

filtering out unfriendly characters when tagging; thanks Tino Benk!

Diffstat:
rc/wmiirc | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rc/wmiirc b/rc/wmiirc @@ -20,7 +20,8 @@ conf_which () { tagsmenu() { tag=`wmiir read /tag/sel/ctl` - tags=`wmiir ls /tag | sed 's,/,,; /^sel$/d' | awk "BEGIN{print \"$tag\"} !/^$tag\$/" | $DMENU` + tags=`wmiir ls /tag | sed 's,/,,; /^sel$/d' | awk "BEGIN{print \"$tag\"} !/^$tag\$/" | $DMENU \ + | sed 's/^\.\.\?$//; s/^\.\.\?+//g; s/+\.\.\?$//g; s/+\.\.\?+/+/g; s/\W//'` test -n "$tags" && xwrite $@ "$tags" }