phillbush / xmenu

a x11 menu utility
Other
295 stars 26 forks source link

[Issue] no max number of lines #32

Closed HeCodes2Much closed 2 years ago

HeCodes2Much commented 2 years ago

there seems to be an issue with there not being a max number of lines before it would scroll so if you had 200 items all on there own line the menu would be too long and go off the page is there any way to set the max number then after that it will scroll :) kind of like -l does for dmenu

phillbush commented 2 years ago

That's a great idea: make a menu higher than the screen to scroll. I just added that to my todo list and gonna be implementing it soon.

HeCodes2Much commented 2 years ago

would be good if you can set the max height too not just if its bigger then the screen :) like i would like it to show no more then 10 items at a time as an example :)

phillbush commented 2 years ago

I added the xmenu.maxItems X resource and the config.max_items config.h option.
Both can be used to select the maximum number of items in a menu.
The scrolling mechanism is kinda hacky, you need to click the arrows in order to scroll the items.

If you have any tip on how to improve it, please comment in this thread.