PrintIndex - bakkeby/dmenu GitHub Wiki

The PrintIndex functionality, if enabled, will make dmenu output the index of the selected item rather than the selected item text.

Practical example:

PrintIndex.jpg

By default if hitting enter on this selection the item text of "config.def.h" will be returned:

$ ls | dmenu
config.def.h

vs -k (or alternatively -PrintIndex) which enables printing of index:

$ ls | dmenu -k
2

The PrintIndex and the PrintInputText functionalities are mutually exclusive with the latter taking precedence.

The functionality originates from the printindex patch for dmenu.

Back to Functionality.

⚠️ **GitHub.com Fallback** ⚠️