High_Priority - bakkeby/dmenu GitHub Wiki

The high priority feature is only available as a command line argument and it allows for dmenu to prioritise some menu options over others when presenting match results.

As an example we will compare the following dmenu commands, the first of which just passes the list of files in the current directory to dmenu and filtering on "l".

$ ls | dmenu

highpriority1.jpg

Then the same command is run but passing the -hp command line option to set the priority item to LICENSE.

$ ls | dmenu -hp LICENCE

highpriority2.jpg

The above shows that the LICENSE option appears before the others as it has priority. Multiple comma delimited high priority items can also be passed in, e.g. -hp LICENSE,util.h.

Known limitations of high priority items:

  • high priority items will not be prioritised when the Sort functionality is disabled
  • when exact matching is enabled then only priority items where the prefix matches will be prioritised (i.e. items where only a substring matches will not be prioritised)

This feature originates from the highpriority patch for dmenu.

Back to Features.

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