Commit graph

7 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
NAHTAIV3L
a0df7959f9 Make wmenu-run behave like dmenu_run 2024-06-09 19:02:32 -04:00
adnano
e1816cc9a9 wmenu-run: Don't overwrite PATH 2024-05-03 19:31:11 -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