A new prompt that works like 'safePrompt', but is optimized for the use-case of a program that needs a file as an argument. This is necessarily a new function and can't just be achieved by using the old `safePrompt`, as `getShellCompl'` does not at all filter the files (compgen already does that based on the input), but only the available commands. If we start the prompt with a single command then the chosen `searchPredicate` becomes quite useless and we can't take advantage of fuzzy matching for file finding. This, however, is quite useful when having a program that explicitly expects a file as one of its arguments, e.g. dragon [1]. What we have to do instead of to generate all available files with compgen and _then_ filter this down to what we want via a given function. In order to make this change backwards compatible we have to introduce the rather ugly `shellComplImpl`, which takes a laundry list of all of the different parameters that we need. Since the function is not exported, this ugliness does perhaps not matter too much. [1]: https://github.com/mwh/dragon
xmonad-contrib: Third Party Extensions to the xmonad Window Manager
You need the ghc compiler and xmonad window manager installed in order to use these extensions.
For installation and configuration instructions, please see the xmonad website, the documents included with the xmonad source distribution, and the online haddock documentation.
Getting or Updating XMonadContrib
-
Latest release: https://hackage.haskell.org/package/xmonad-contrib
-
Git version: https://github.com/xmonad/xmonad-contrib
(To use git xmonad-contrib you must also use the git version of xmonad.)
Contributing
Haskell code contributed to this repo should live under the
appropriate subdivision of the XMonad
namespace (currently includes
Actions
, Config
, Hooks
, Layout
, Prompt
, and Util
). For
example, to use the Grid layout, one would import:
XMonad.Layout.Grid
For further details, see the documentation for the
XMonad.Doc.Developing
module, XMonad's CONTRIBUTING.md and the xmonad website.
License
Code submitted to the contrib repo is licensed under the same license as xmonad itself, with copyright held by the authors.