Commit Graph

52 Commits

Author SHA1 Message Date
bakkeby
05f5efc5e5 Bump to e42c036.
dmenu: small XmbLookupString code improvements

* Increase the length of composed strings to the same limit as st (32 to 64 bytes).
* Initialize ksym to NoSymbol to be safe: currently this is not an issue though.
* Add comments to clarify the return values of XmbLookupString a bit.

Ref.
https://git.suckless.org/dmenu/commit/e42c03663442f5fb2f66dd59cc5bfdc61c53192c.html
2022-10-26 10:00:45 +02:00
bakkeby
b4aad57ce4 Bump to 1d2b462.
bump version to 5.2

Ref.
https://git.suckless.org/dmenu/commit/1d2b462acf1210b8f86966b8dd9bb6e36e369ee1.html
2022-10-06 15:19:05 +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
6f9bd28e6b Bump to 1e8c5b6.
tab-complete: figure out the size before copying

we already need to know the string length since `cursor` needs to be
adjusted.

so just calculate the length beforehand and use `memcpy` to copy exactly
as much as needed (as opposed to `strncpy` which always writes `n`
bytes).

+ fix a regression in the previous commit for tab complete

Reported by Santtu Lakkala <inz@inz.fi>, thanks!

Ref.
https://git.suckless.org/dmenu/commit/528d39b011afb7ef6fd794ba6b74155d4e69bc68.html
https://git.suckless.org/dmenu/commit/1e8c5b68f4881bd4ae257c780fd41f129c79f419.html
2022-09-04 23:18:04 +02:00
bakkeby
6a1ed51d47 Adding fzfexpect patch 2022-09-04 22:33:24 +02:00
bakkeby
ff2f1552b3 Bump to e35976f.
sync code-style patch from libsl

Ref.
https://git.suckless.org/dmenu/commit/e35976f4a50f884c2162f71e4128d7c273e3e042.html
2022-08-08 14:42:54 +02:00
bakkeby
333a738709 Adding barpadding patch 2022-06-21 11:03:19 +02:00
bakkeby
d3b51477fc Adding relative input width patch and bumping to 28fb3e2 2022-06-21 10:22:20 +02:00
bakkeby
528481f7a6 Upgrade to 33685b0
drw_text: account for fallback fonts in ellipsis_width

additionally, ellipsis_width (which shouldn't change) is made static to
avoid re-calculating it on each drw_text() call.
2022-04-17 10:08:22 +02:00
bakkeby
7a26db0c06 Adding reference to map of patches 2022-04-01 21:56:35 +02:00
bakkeby
db9e45a2ad Upgrade to e73651f (2022-03-26) 2022-03-28 11:18:32 +02:00
bakkeby
daf318abf3 Bump to 5.1 2022-03-02 09:35:23 +01:00
bakkeby
310bfe4e02 Revert "Improve speed of drw_text when provided with large strings"
This reverts commit c585e8e498ec6f9c423ab8ea07cf853ee5b05fbe.

It causes issues with truncation of characters when the text does not fit and
so on.  The patch should be reworked and properly tested.

https://git.suckless.org/dmenu/commit/d78ff08d99780a73447d5a95bf1e358e8c23aa3c.html
2021-08-24 15:06:49 +02:00
bakkeby
fb43216a0e Bumping version to cd2133a 2021-08-16 10:51:05 +02:00
bakkeby
21641d4f3f Updating link to alpha patch 2021-07-26 09:33:24 +02:00
bakkeby
82aa682b40 Adding emoji-highlight patch 2021-05-24 13:29:40 +02:00
bakkeby
b6103ff6a7 Adding support for ctrl+v to paste 2021-05-23 13:16:26 +02:00
bakkeby
39faa8f5c3 Improving consistency regarding flag presentation on README.md 2021-05-17 11:58:23 +02:00
bakkeby
08a4618cff Improving consistency regarding flag presentation on README.md 2021-05-17 11:57:12 +02:00
bakkeby
608fa3e837 Adding gridnav patch 2021-05-17 11:46:50 +02:00
bakkeby
f469820531 Adding plain prompt (listfullwidth) patch 2021-05-17 11:39:39 +02:00
bakkeby
24ff57a540 Adding no sort patch 2021-05-17 11:10:09 +02:00
bakkeby
d6894046f1 Adding restrict return patch 2021-05-17 10:59:48 +02:00
bakkeby
976d6bc04c Adding printindex patch 2021-05-15 14:40:05 +02:00
bakkeby
93f5b58d4e Adding tsv patch 2021-05-15 12:51:58 +02:00
bakkeby
82c9f772f7 bump version to 5.0 2020-09-02 20:42:50 +02:00
bakkeby
3eac73fe85 Adding json patch 2020-08-09 15:10:29 +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
478f49b1c4 Adding preselect patch 2020-08-09 11:51:34 +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
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
ee3e48fe0b Adding grid patch 2020-08-05 11:31:54 +02:00
bakkeby
c4cac2c195 Fix memory leaks in drw
Synced from dwm.
Patch by Alex Flierl <shad0w73@freenet.de>, thanks.

(upgrade to 1df960, 2020-06-11)
2020-06-25 12:54:49 +02:00
bakkeby
419de40e2c Adding pango patch 2020-06-13 15:32:41 +02:00
bakkeby
9248bbb392 Addiing the case-insensitive patch 2020-06-10 12:53:27 +02:00
bakkeby
1a7c45e4f2 Adding color emoji patch 2020-05-29 20:33:20 +02:00
bakkeby
05aef66ca7 Adding alpha reference 2020-05-29 17:19:20 +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
415fa6ccad Correcting link to patches.h following move to patches.def.h 2020-04-02 12:43:17 +02:00
bakkeby
7f571bd751 Specifying latest version 2020-03-29 12:19:19 +02:00
bakkeby
db891f3f9b [dmenu][border] Revised Dmenu Border Patch 2020-02-09 10:48:08 +01: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