itemfield

A brick Widget for selectable summary of many elements on a terminal

Latest on Hackage:1.2.5.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Kevin Quick
Maintained by quick@sparq.org

This module provides a brick Widget that can be used with the brick package to handle situations where there are lots of items to represent to the user along with a corresponding state for each item. One example of where the itemfield would be used is if there are too many elements to reasonably show in a List widget, if those elements are divided into groups, and if some status needs to be shown for each element.

In addition, the user can use the cursor keys and space bar to mark one or more items (presumably so other code can get the list of marked elements and perform a state-changing operation).

There are two example programs built when the examples flag is True (the default): bookcase and workreport. Running these applications should give a better idea of what the itemfield widget is and how it can be used.

Changes

Series 1

  • 1.2.5.0 -- enable widget caching and invalidation with Ctrl-R invalidate all
  • 1.2.4.1 -- documentation updates; separate changelog file.
  • 1.2.4.0 -- added brick 0.17 compatibility
  • 1.2.3.0 -- added brick 0.16 compatibility
  • 1.2.2.1 -- added stack.yaml for using itemfield with stack
  • 1.2.2.0 -- added compatibility for GHC7.10
  • 1.2.1.0 -- added compatibility for older distributions
  • 1.2.0.0 -- intermediary state is "Pending"
  • 1.1.0.0 -- add support for 's' and 'f' keys and mouse events
  • 1.0.0.0 -- update from vty-ui to brick

Series 0

  • 0.3.1.0 -- add + key selector to select all successful targets
  • 0.3.0.0 -- rename from StateFieldSelector to ItemField
  • 0.2.0.1 -- more key events: G=toggle group, A=toggle all, !=mrk bad; add helpMsg
  • 0.2.0.0 -- more key events: Shift+Arrow to mark/unmark with move
  • 0.1.0.0 -- initial version
comments powered byDisqus