sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit a3605583ffff69dbc6b329883d92a243da5fceb8
parent 953bf580174eba39f754febf72f654e4fe8e9279
Author: Chris Noxz <chris@noxz.tech>
Date:   Sat,  4 Apr 2020 10:36:44 +0200

[dmenu][patch] fuzzyhighlight: fix typo in index.md and add usage

Diffstat:
Mtools.suckless.org/dmenu/patches/fuzzyhighlight/dmenu-fuzzyhighlight-4.9.diff | 53++++++++++++++++++++++++++++++++++++++++++++++++++---
Mtools.suckless.org/dmenu/patches/fuzzyhighlight/index.md | 4++--
2 files changed, 52 insertions(+), 5 deletions(-)

diff --git a/tools.suckless.org/dmenu/patches/fuzzyhighlight/dmenu-fuzzyhighlight-4.9.diff b/tools.suckless.org/dmenu/patches/fuzzyhighlight/dmenu-fuzzyhighlight-4.9.diff @@ -3,7 +3,7 @@ note: This patch is meant to be used together with fuzzymatch diff -upN dmenu-4.9/config.def.h dmenu-4.9-fuzzyhighlight/config.def.h --- dmenu-4.9/config.def.h 2019-02-02 13:55:02.000000000 +0100 -+++ dmenu-4.9-fuzzyhighlight/config.def.h 2020-04-03 14:06:23.975230204 +0200 ++++ dmenu-4.9-fuzzyhighlight/config.def.h 2020-04-04 10:26:36.990890854 +0200 @@ -11,6 +11,8 @@ static const char *colors[SchemeLast][2] /* fg bg */ [SchemeNorm] = { "#bbbbbb", "#222222" }, @@ -13,9 +13,46 @@ diff -upN dmenu-4.9/config.def.h dmenu-4.9-fuzzyhighlight/config.def.h [SchemeOut] = { "#000000", "#00ffff" }, }; /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ +diff -upN dmenu-4.9/dmenu.1 dmenu-4.9-fuzzyhighlight/dmenu.1 +--- dmenu-4.9/dmenu.1 2019-02-02 13:55:02.000000000 +0100 ++++ dmenu-4.9-fuzzyhighlight/dmenu.1 2020-04-04 10:30:16.430054933 +0200 +@@ -20,6 +20,14 @@ dmenu \- dynamic menu + .IR color ] + .RB [ \-sf + .IR color ] ++.RB [ \-nhb ++.IR color ] ++.RB [ \-nhf ++.IR color ] ++.RB [ \-shb ++.IR color ] ++.RB [ \-shf ++.IR color ] + .RB [ \-w + .IR windowid ] + .P +@@ -75,6 +83,18 @@ defines the selected background color. + .BI \-sf " color" + defines the selected foreground color. + .TP ++.BI \-nhb " color" ++defines the normal highlight background color. ++.TP ++.BI \-nhf " color" ++defines the normal highlight foreground color. ++.TP ++.BI \-shb " color" ++defines the selected highlight background color. ++.TP ++.BI \-shf " color" ++defines the selected highlight foreground color. ++.TP + .B \-v + prints version information to stdout, then exits. + .TP diff -upN dmenu-4.9/dmenu.c dmenu-4.9-fuzzyhighlight/dmenu.c --- dmenu-4.9/dmenu.c 2019-02-02 13:55:02.000000000 +0100 -+++ dmenu-4.9-fuzzyhighlight/dmenu.c 2020-04-03 14:09:46.318532108 +0200 ++++ dmenu-4.9-fuzzyhighlight/dmenu.c 2020-04-04 10:27:43.888026309 +0200 @@ -26,7 +26,9 @@ #define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad) @@ -88,7 +125,17 @@ diff -upN dmenu-4.9/dmenu.c dmenu-4.9-fuzzyhighlight/dmenu.c } static void -@@ -724,6 +768,14 @@ main(int argc, char *argv[]) +@@ -683,7 +727,8 @@ static void + usage(void) + { + fputs("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" +- " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]\n", stderr); ++ " [-nb color] [-nf color] [-sb color] [-sf color]\n" ++ " [-nhb color] [-nhf color] [-shb color] [-shf color] [-w windowid]\n", stderr); + exit(1); + } + +@@ -724,6 +769,14 @@ main(int argc, char *argv[]) colors[SchemeSel][ColBg] = argv[++i]; else if (!strcmp(argv[i], "-sf")) /* selected foreground color */ colors[SchemeSel][ColFg] = argv[++i]; diff --git a/tools.suckless.org/dmenu/patches/fuzzyhighlight/index.md b/tools.suckless.org/dmenu/patches/fuzzyhighlight/index.md @@ -3,8 +3,8 @@ fuzzyhighlight Description ----------- -This patch make it so that fuzzy matches gets highlighted and is therefor meant -to be used together with the patch fuzzymatch. +This patch make it so that fuzzy matches gets highlighted and is therefore +meant to be used together with the patch fuzzymatch. [![Screenshot dmenu with the patch](fuzzyhighlight.png)](fuzzyhighlight.png)