Cloudef / bemenu

Dynamic menu library and client program inspired by dmenu
GNU General Public License v3.0
1.16k stars 90 forks source link

Use `--index` without hiding the other options #402

Open UtkarshVerma opened 1 month ago

UtkarshVerma commented 1 month ago

Over on the X11 side, I used -ps in dmenu to preselect an option in the menu indicating a mode or state that is currently active. Reading up the manpage for bemenu, I expected --index to do the same for me.

However, I noticed that while the passed index is preselected, the items on the left of the option are hidden. Is there any way to show the items before the selected item?

For example, executing the command below only shows C where I expect A, B, and C to be shown with C being highlighted.

echo "A
B
C" | bemenu --index 2