mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-26 09:41:52 -07:00
This change improves the UX of X.Prompt when `alwaysHighlight` is enabled. This is especially useful for use with `mkXPromptWithModes` which forces `alwaysHighlight` to be `True`. When the user presses the `complKey` and `alwaysHighlight` is `True`, one of two things will happen: 1. If this is the first time `complKey` is pressed in this round of completion then the prompt buffer will be updated so it contains the currently highlighted item. 2. Every other time that the `complKey` is pressed the next completion item will be selected and the prompt buffer updated. This gives immediate feedback to the user and allows using some prompts with `alwaysHighlight` that weren't possible before (e.g., shellPrompt, directoryPrompt, etc.)