Commit Graph

26 Commits

Author SHA1 Message Date
bakkeby
e74a659468 Refactoring highlight and fuzzyhighlight patches
Follow-up on pull request #16 this change refactors and combines
the highlight and fuzzy highlight patches into one highlight
function.

Overall it does not make any sense using:
   - fuzzy highlighting when exact matching is used or
   - exact highlighting when fuzzy matching is used

As such it makes sense to combine the two such that:
   - exact highlighting is used when exact matching is used and
   - fuzzy highlighting is used when fuzzy matching is used

The FUZZYHIGHLIGHT_PATCH toggle has been removed in favour of
HIGHLIGHT_PATCH. The FUZZYMATCH_PATCH toggle controls whether
fuzzy matching is enabled. Enable both FUZZYMATCH_PATCH and
HIGHLIGHT_PATCH to enable fuzzy highlighting.

Additionally the fuzzy highlight patch only supported single-byte
characters and would break when encountering multi-byte UTF-8
characters. This was reported ref. #24.

This refactoring includes a change to work out the UTF-8 character
length for a given character rather than assuming that every
character uses one byte.
2024-07-16 21:45:01 +02:00
bakkeby
9ef1b3c317 pango: passing -fn option could lead to segfault due to writing out of bounds 2024-05-17 21:42:30 +02:00
Johnny Mast
0d6d5ac5cc
CENTER_PATCH Fix (#28)
Changed default config for the centered patch to be off by default.
2023-12-13 09:32:30 +01:00
bakkeby
690436ef27 Adding caret patch ref. #23 2023-06-15 09:54:53 +02:00
bakkeby
333a738709 Adding barpadding patch 2022-06-21 11:03:19 +02:00
bakkeby
d4ba5053ce border patch: adding separate colour scheme for the border (rather than forcing SchemeSel) 2022-03-14 11:26:51 +01:00
bakkeby
1d200d199b alpha: repurposing the -o option to enable or disable alpha ref. #4 2021-07-25 10:09:38 +02:00
bakkeby
82aa682b40 Adding emoji-highlight patch 2021-05-24 13:29:40 +02:00
bakkeby
d6894046f1 Adding restrict return patch 2021-05-17 10:59:48 +02:00
bakkeby
3eac73fe85 Adding json patch 2020-08-09 15:10:29 +02:00
bakkeby
1f6c8c1e7c MULTI_SELECT_PATCH --> MULTI_SELECTION_PATCH 2020-08-09 13:49:41 +02:00
bakkeby
240cce1c1a Adding multi-select patch 2020-08-09 13:30:03 +02:00
bakkeby
841a0cff2b Adding morecolor patch 2020-08-09 11:57:51 +02:00
bakkeby
984476ba94 Adding managed patch 2020-08-09 11:28:27 +02:00
bakkeby
a96da272b3 Adding symbols patch 2020-08-09 11:07:25 +02:00
bakkeby
17d32014a3 Adding highpriority patch 2020-08-05 14:54:01 +02:00
bakkeby
aa50b3f2c5 Adding highlight patch 2020-08-05 13:19:30 +02:00
bakkeby
73d2405635 Adding dynamic options patch 2020-08-05 12:27:15 +02:00
bakkeby
ee3e48fe0b Adding grid patch 2020-08-05 11:31:54 +02:00
bakkeby
419de40e2c Adding pango patch 2020-06-13 15:32:41 +02:00
bakkeby
e9cfb59a5d Adding alpha patch 2020-05-29 17:01:40 +02:00
bakkeby
fcfde08faf Adding fuzzyhighlight patch 2020-04-04 09:58:35 +02:00
bakkeby
0f6d298600 Updating xresources patch as per 2020-03-02: [dmenu][patch] xresources: fixed patch, updated description 2020-03-29 12:45:39 +02:00
bakkeby
db891f3f9b [dmenu][border] Revised Dmenu Border Patch 2020-02-09 10:48:08 +01:00
bakkeby
d7f418468d Adding configurable minimum width when using the center patch #1 2020-01-27 09:43:10 +01:00
bakkeby
f128efa1b2 Added border, center, fuzzymatch, incremental, initialtext, instant, line-height, mouse-support, navhistory, non-blocking-stdin, password, pipeout, printinputtext, rejectnomatch, scroll, vertfull, wmtype and xyw patches 2019-09-19 00:33:15 +02:00