xmonad / xmonad-contrib

Contributed modules for xmonad
https://xmonad.org
BSD 3-Clause "New" or "Revised" License
584 stars 274 forks source link

XMonad.Prompt: export {selected,setCurrent,getCurrent}Completion[s] #861

Closed dcousens closed 8 months ago

dcousens commented 8 months ago

Description

I am playing with using the key bindings to modify the input, and when trying to change the input to the next [or previous] completion in the currently available completions, I needed getCurrentCompletions and selectedCompletion to be available. I have additionally added setCurrentCompletions, but if we don't want to export that, I'm happy to remove that from the PR.

I am new to Haskell, maybe I'm missing another way to do this.

Checklist

slotThe commented 8 months ago

Thanks!