[xmonad] patch: Add search string to X.A.GridSelect grid

adam vogt vogt.adam at gmail.com
Thu Jan 17 03:57:19 CET 2013

On Wed, Jan 16, 2013 at 2:54 PM, Gwern Branwen <gwern0 at gmail.com> wrote:
> Any GridSelect users want to try this out and verify it doesn't break
> anything before I push it?

The patch works well, but I think it would be better to have:

 gs_searchConverter :: String -> Maybe a

rather than `Maybe (String -> a)'. This way you could express things
like: don't show an option to create a workspace with name "", or
don't show an option to create a workspace with a name identical to a
workspace which already existed.

Further generalization like:  `gs_searchConverter :: String ->
[(String, a)]' or even `gs_searchConverter :: String -> X [(String,
a)]' might be useful for getting completions from the shell. If that
happens, XMonad.Actions.GridSelect will get closer to XMonad.Prompt in
terms of features.


More information about the xmonad mailing list