Commit Graph

44 Commits

Author SHA1 Message Date
Stein Gunnar Bakkeby
34b991503c
Adding input method patch (#31)
Adding input method patch ref. PR #22
2024-07-18 09:16:00 +02:00
bakkeby
a3a5229059 Aligning variables between exact and fuzzy highlighting 2024-07-16 23:03:10 +02:00
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
af373aa1cc Addressing some clang warnings 2024-07-16 21:43:57 +02:00
Marco
4a8b71c191 Added patch to highlight an entry when mouse-hovered. 2024-07-16 09:30:50 +02:00
bakkeby
6bd3860e4b scroll + alpha compatibility fix 2023-10-02 20:49:59 +02:00
bakkeby
fc8c1c56c6 Addressing instant vs fuzzymatch compatibility issue ref. #21 2023-04-21 09:52:47 +02:00
bakkeby
0329c28407 highlight: do not highlight items scheduled for output ref. #20
The highlight feature by default overrides other colour schemes and
may in the process partially or fully obscure that an item has already
been output (or is scheduled for output using the multiselect patch).

In this context the highlighting does not add any valuable information
given that the user has already selected the item. Overall it seems
more user-friendly to skip drawing highlights for outputted items.
2023-04-11 09:44:49 +02:00
bakkeby
dc169b1971 Adding separator patch
This patch is simpler than, and superior to, the TSV patch and as
such takes precedence if both are combined.

Also addressed some compatibility issues and compilation errors.
2022-09-05 14:08:27 +02:00
bakkeby
036d2b0d08 Removing the json patch
Reasoning:
   - the patch is old and incompatible and conflicts with so many
     other patches
   - the functionality is rather limited especially considering that
     it is generally possible to convert json data to work with the
     TSV patch or the separator patch
   - the patch is for dmenu 4.9, which means that since February 2009
     nobody has bothered upgrading this patch to 5.0 or 5.1, which
     again implies that not many people actually use or rely on this
     patch

The json patch may be re-introduced into dmenu-flexipatch in the
future, but in that case it would be a bespoke version that is
designed around some of the other patches and takes more liberties
rather than trying to adhere to what is available at
https://tools.suckless.org/dmenu/patches/json/

Example using jq to convert json data to TSV format:

$ cat ~/.bookmarks
{
	"uggah": "buggah",
	"hello": "there",
	"bye": "tomorrow"
}

$ cat ~/.bookmarks | jq -r '. | to_entries | .[] | "\(.key)\t\(.value)"'
uggah	buggah
hello	there
bye	tomorrow
2022-09-05 12:46:15 +02:00
bakkeby
6a1ed51d47 Adding fzfexpect patch 2022-09-04 22:33:24 +02:00
bakkeby
872a3623d0 fuzzyhighlight: correcting sign for deducting lrpad 2022-04-26 23:19:03 +02:00
bakkeby
ae643ff68d fuzzyhighlight: addressing graphical highlight glitch when lrpad is an odd number ref. #12 2022-04-26 23:13:26 +02:00
bakkeby
40ee9e2b7d highpriority: adding check for malloc failure + cleanup on exit
ref. https://git.suckless.org/sites/commit/9bbc02d13a89e427a046817771c6f8fd332d0167.html
2022-03-27 22:38:32 +02:00
bakkeby
67180f6288 multiselect + printindex compatibility ref. #10 2022-03-24 00:15:15 +01:00
bakkeby
287e7d6afa fuzzymatch + highpriority + no sort patch compatibilty 2022-03-14 11:35:10 +01: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
de7f10513f fuzzymatch + nosort compatibility 2022-03-14 11:15:44 +01:00
bakkeby
84c91ee18e xresources: removing redundant else statements 2022-03-14 11:12:56 +01:00
bakkeby
ea2fd892db dynamic options vs fuzzymatch and prefix completion patches fix ref. #8 2022-01-20 13:53:38 +01:00
bakkeby
e3a291ea43 dynamic options vs TSV patch issue ref. #8 2022-01-20 11:12:20 +01:00
bakkeby
452174309f dynamic options vs multi selection patch compatibility issue ref. #8 2022-01-20 11:04:02 +01:00
bakkeby
3cb4dbdf7a [dmenu][patch][navhistory] Bug fix: Write first entry to history file
- Bug fix: Don't skip writing first entry to history file. This happened for
  `histnodup` = 1 (default) plus `histsz` = 0 (value when starting with an
  empty history).

Ref.
https://git.suckless.org/sites/commit/f759877d393eaed126dfc8e56932c49e7581a181.html
2021-07-26 12:10:44 +02:00
bakkeby
82aa682b40 Adding emoji-highlight patch 2021-05-24 13:29:40 +02:00
bakkeby
976d6bc04c Adding printindex patch 2021-05-15 14:40:05 +02:00
bakkeby
79b9ae42d8 highlight: pango compatibility 2021-04-21 16:23:17 +02:00
bakkeby
ba88f1a3e8 Adding missing multiselect.c file ref. #3 2021-03-08 09:03:26 +01:00
bakkeby
c256320307 Adding json patch 2020-08-09 15:12:39 +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
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
768b5527ab Adding numbers patch 2020-08-05 12:40:03 +02:00
bakkeby
73d2405635 Adding dynamic options patch 2020-08-05 12:27:15 +02:00
bakkeby
419de40e2c Adding pango patch 2020-06-13 15:32:41 +02:00
bakkeby
69baafdebf Expanding Xresources options to include SchemeOut and fuzzyhighlight colour options 2020-06-03 17:27:40 +02:00
bakkeby
a04fa75d7f Fuzzymatch integration adding case insensitive support for fuzzyhighlight patch 2020-04-09 11:54:08 +02:00
bakkeby
0993a2931a [dmenu][patch] fuzzyhighlight: don't move character 1 pixel backwards 2020-04-05 18:01:50 +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
9147fb7202 Adding xresources patch 2019-12-29 14:13:22 +01:00
bakkeby
687e10f42c Adding note about flexipatch-finalizer 2019-10-16 10:27:50 +02: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