Commit graph

8 commits

Author SHA1 Message Date
adnano
8fe04a0c99 Limit number of menu lines by item count
Limit the number of menu lines visible in line mode if there are less
items than lines. This brings wmenu's behavior in line with dmenu's.

Closes https://codeberg.org/adnano/wmenu/issues/64
2025-11-18 20:03:22 -05:00
M Stoeckl
260eaba88e Optimize menu sorting
Sorting and deduplicating elements after all items have been registered
improves the time complexity of constructing the item list from O(n^2)
to O(n log n). On a system with about 4000 menu items, this reduces
startup time from about 0.21 seconds to 0.13 seconds.
2024-10-31 09:30:09 -04:00
adnano
7d717b3696 Streamline menu callbacks 2024-06-09 20:30:58 -04:00
adnano
30abca4f30 Don't ignore stdin in password mode
This makes password mode work for wmenu and wmenu-run without special
cases.
2024-05-05 10:13:01 -04:00
adnano
15d7c7bcc2 Revert "Remove wmenu -P flag"
This reverts commit c05ab7520b.
2024-05-04 21:44:59 -04:00
adnano
c05ab7520b Remove wmenu -P flag
This flag causes some issues with wmenu-run. It will be revisited in the
next release.
2024-05-04 21:41:21 -04:00
adnano
8f19d6a8d2 wmenu-run: Populate items from PATH 2024-05-03 19:10:28 -04:00
adnano
41e8599392 Add wmenu-run executable 2024-05-02 21:39:54 -04:00
Renamed from main.c (Browse further)