judah / haskeline

A Haskell library for line input in command-line programs.
https://hackage.haskell.org/package/haskeline
BSD 3-Clause "New" or "Revised" License
221 stars 75 forks source link

[ADDED] Add description support for completions #192

Open cycoe opened 2 weeks ago

cycoe commented 2 weeks ago

Add description support for completions User can display descriptions when listing alternatives, by settting description field to `Just "some description"' in Completion data. If any alternative in current page is set with description, then single column mode is enabled automatically, like this:

0:
first         this is the first item
second        this is the second item
third         this is the third item
forth         this is the forth item
fifth         this is the fifth item