aboutsummaryrefslogtreecommitdiffstats
path: root/XPrompt.hs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* XPrompt: quickcheck related refactoringAndrea Rossato2007-08-171-14/+25
| | | | | | | | With this patch XPrompt can be tested with quickcheck. As a result getLastWord and skipLastWord has been refactored to avoid possible exceptions. darcs-hash:20070817155454-32816-cf913d1207efe2c090c150bf192ba737323c4593.gz
* XPrompt: fixes a nasty bug in getLastWordAndrea Rossato2007-08-151-4/+7
| | | | | | | | This patch fixes a nasty bug in getLastWord, a bug that causes XMonad to crash as soon as the command line consists of only 2 empty spaces. *PLEASE UPDATE* if you are running XPrompt. darcs-hash:20070815163457-32816-13dc80cfb1fccaca6717df60072f2d3e9fc68bf7.gz
* Use maskEvent rather than nextEvent. Fixes rare segfaultsSpencer Janssen2007-08-141-1/+1
| | | | darcs-hash:20070814170416-a5988-dd4a3197f2442953ece2075a39b18d3372b313ba.gz
* actually use the selected font in XPrompt.David Roundy2007-08-101-0/+1
| | | | darcs-hash:20070810174543-72aca-37b0aba755e79a399b0cbe2e972f0f445752fc88.gz
* increase default contrast in XPrompt.David Roundy2007-08-101-2/+2
| | | | darcs-hash:20070810174724-72aca-20d1d02d461da8cf5c1fbfb8fb6299d3f7fc6551.gz
* center prompt text in window.David Roundy2007-08-101-1/+1
| | | | darcs-hash:20070810173746-72aca-add5457dcb36c22bed178f9db5ae560229912d2d.gz
* don't crash when given a non-existent font in XPrompt.David Roundy2007-08-101-1/+2
| | | | darcs-hash:20070810170445-72aca-1784272b5a0036ed007916221840c73436650ef2.gz
* XPrompt: removed touchFile (which is not the equivalent of touch!)Andrea Rossato2007-08-061-2/+1
| | | | darcs-hash:20070805225906-32816-0f38508090df958660a6399ee3281037d3c7b131.gz
* XPrompt.hs: getCompletion should check for completions of the last word of ↵Andrea Rossato2007-08-051-2/+2
| | | | | | the command line darcs-hash:20070805124130-32816-c6ccb1937ad290dba4a488453ebded844e464bbb.gz
* XPrompt.hs: read history lazilyAndrea Rossato2007-08-041-32/+23
| | | | | | Instead of forcing the reading of all the history file we read it lazily. darcs-hash:20070804185914-32816-ff8f258a66c610d837e4fa01695baf6f52a17ada.gz
* XPrompt.hs: removed defaultPromptConfig. use defautlXPConfig insteadAndrea Rossato2007-08-041-4/+0
| | | | darcs-hash:20070804183252-32816-6ef986de551cf0579b4e39cef52ec53cbc91cbf9.gz
* XPrompt.hs: haddock corrections and some commentsAndrea Rossato2007-08-041-10/+12
| | | | darcs-hash:20070804104622-32816-15ca269926147136c45966d812d018151833ef5c.gz
* XPrompt: fixes a couple of bugsAndrea Rossato2007-08-041-24/+21
| | | | | | | | | | - we run the action passed to mkXPrompt only if we have a command; - updateWindows must call destroyComplWin if there are no completions; - some comments (more to come) - a shorthand in keyPressHandle - removed all warnings darcs-hash:20070804090817-32816-6440f7fce4d69e6738855c1159384d822a6ab51f.gz
* XPrompt: code cleanupAndrea Rossato2007-08-031-53/+44
| | | | | | | The completion list is not cached anymore: this greatly simplify the code making its runtime behaviour more predictable...;-) Suggested by Spencer. darcs-hash:20070803181905-32816-a9a41a08657fff91a279a1bcf362cf72cc0cd458.gz
* Make 'compList :: [String]', rather than Maybe. No completions is ↵Spencer Janssen2007-08-031-13/+12
| | | | | | represented by [] darcs-hash:20070803160424-a5988-21957dfa7e04db5bab0387d475aacf48e8f0fbc7.gz
* Rename 'setCompletionList' to 'refreshCompletionList'Spencer Janssen2007-08-031-8/+8
| | | | darcs-hash:20070803155942-a5988-f6b022d5e84d49e1999f6bd9da024ee7038d9080.gz
* XPrompt: added comletion and history supportAndrea Rossato2007-08-031-76/+210
| | | | | | | | | This is a long patch the brings us a real prompt, more or less: completions now work. Added history support, with a configuration option: defaul history size is 256. defaultPromptConfig is now deprecated: please use defaultXPConfig instead darcs-hash:20070803154531-32816-a2dfec51e8988173ef8b494e268a4418686658f9.gz
* Make the XPrompt appear on the current screenSpencer Janssen2007-08-021-17/+18
| | | | darcs-hash:20070802184231-a5988-c4c066e6e3091e723b55f22d1d02f09b3fbb257d.gz
* XPrompt: a module for easily writing graphical promptsAndrea Rossato2007-08-021-0/+512
darcs-hash:20070802171552-32816-2fa9aa8feda763ffb7d7ad4e9be344e96318bd5b.gz