[wiki] [sites] [dmenu][patch] fuzzyhighlight: fix typo in index.md and add usage || Chris Noxz

From: <git_AT_suckless.org>
Date: Sat, 04 Apr 2020 10:37:23 +0200

commit a3605583ffff69dbc6b329883d92a243da5fceb8
Author: Chris Noxz <chris_AT_noxz.tech>
Date: Sat Apr 4 10:36:44 2020 +0200

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

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
index 59360b3c..005718d9 100644
--- a/tools.suckless.org/dmenu/patches/fuzzyhighlight/dmenu-fuzzyhighlight-4.9.diff
+++ b/tools.suckless.org/dmenu/patches/fuzzyhighlight/dmenu-fuzzyhighlight-4.9.diff
_AT_@ -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
 _AT_@ -11,6 +11,8 @@ static const char *colors[SchemeLast][2]
          /* fg bg */
          [SchemeNorm] = { "#bbbbbb", "#222222" },
_AT_@ -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
+_AT_@ -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
+_AT_@ -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
 _AT_@ -26,7 +26,9 @@
  #define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad)
  
_AT_@ -88,7 +125,17 @@ diff -upN dmenu-4.9/dmenu.c dmenu-4.9-fuzzyhighlight/dmenu.c
  }
  
  static void
-_AT_@ -724,6 +768,14 @@ main(int argc, char *argv[])
+_AT_@ -683,7 +727,8 @@ static void
+ usage(void)
+ {
+ fputs("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]
"
+- " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]
", stderr);
++ " [-nb color] [-nf color] [-sb color] [-sf color]
"
++ " [-nhb color] [-nhf color] [-shb color] [-shf color] [-w windowid]
", stderr);
+ exit(1);
+ }
+
+_AT_@ -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
index 4705a1c9..202b92dc 100644
--- a/tools.suckless.org/dmenu/patches/fuzzyhighlight/index.md
+++ b/tools.suckless.org/dmenu/patches/fuzzyhighlight/index.md
_AT_@ -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)
 
Received on Sat Apr 04 2020 - 10:37:23 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 04 2020 - 10:49:04 CEST