Commit Graph

28 Commits

Author SHA1 Message Date
Spencer Janssen
de6968d1b4 Use LANGUAGE pragmas over -fglasgow-exts 2007-09-28 18:16:14 +00:00
gwern0
8d29875f8b XPrompt.hs: replace 'borderWidth' with 'borderPixel'
borderWidth is already defined in Config.hs. Thus, if one attempted to use a prompt configuration different than defaultXPConfig, and one defined it in one's Config.hs where it should be, then the borderWidth field would cause a warning by -Wall, since borderWidth is already a name being used by XMonad at large.
2007-09-18 16:29:50 +00:00
Andrea Rossato
8a5e61d0df XPrompt: a very long string in the completion list can lead to a division by zero 2007-08-30 14:15:24 +00:00
Andrea Rossato
3a2c49b148 XPrompt.hs: remove debugging bits 2007-08-28 08:12:35 +00:00
David Roundy
9994baef5d make code more compact in XPrompt. 2007-08-27 19:18:30 +00:00
Andrea Rossato
8935f2aa65 XPrompt: just code formatting 2007-08-22 19:32:20 +00:00
David Roundy
7551c79496 fix bug leading to early exit in XPrompt. 2007-08-27 18:58:58 +00:00
Andrea Rossato
ff2461714a XPrompt: haddock tuning and more comments 2007-08-18 08:34:23 +00:00
Andrea Rossato
588c5917ed XPrompt: documentation only 2007-08-17 16:28:06 +00:00
Andrea Rossato
d7b9bd48bd XPrompt: quickcheck related refactoring
With this patch XPrompt can be tested with quickcheck. As a result
getLastWord and skipLastWord has been refactored to avoid possible
exceptions.
2007-08-17 15:54:54 +00:00
Andrea Rossato
990d65eb3e XPrompt: fixes a nasty bug in getLastWord
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.
2007-08-15 16:34:57 +00:00
Spencer Janssen
5e358c365e Use maskEvent rather than nextEvent. Fixes rare segfaults 2007-08-14 17:04:16 +00:00
David Roundy
17342a2421 actually use the selected font in XPrompt. 2007-08-10 17:45:43 +00:00
David Roundy
ae5fa6c7e7 increase default contrast in XPrompt. 2007-08-10 17:47:24 +00:00
David Roundy
468e2ff247 center prompt text in window. 2007-08-10 17:37:46 +00:00
David Roundy
dd88f670da don't crash when given a non-existent font in XPrompt. 2007-08-10 17:04:45 +00:00
Andrea Rossato
686328c517 XPrompt: removed touchFile (which is not the equivalent of touch!) 2007-08-05 22:59:06 +00:00
Andrea Rossato
d06d656dd4 XPrompt.hs: getCompletion should check for completions of the last word of the command line 2007-08-05 12:41:30 +00:00
Andrea Rossato
ecaaa5ac11 XPrompt.hs: read history lazily
Instead of forcing the reading of all the history file we read it lazily.
2007-08-04 18:59:14 +00:00
Andrea Rossato
f26609aeca XPrompt.hs: removed defaultPromptConfig. use defautlXPConfig instead 2007-08-04 18:32:52 +00:00
Andrea Rossato
973ffbcf22 XPrompt.hs: haddock corrections and some comments 2007-08-04 10:46:22 +00:00
Andrea Rossato
2be1438c27 XPrompt: fixes a couple of bugs
- 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
2007-08-04 09:08:17 +00:00
Andrea Rossato
4c69e6a515 XPrompt: code cleanup
The completion list is not cached anymore: this greatly simplify the code
making its runtime behaviour more predictable...;-) Suggested by Spencer.
2007-08-03 18:19:05 +00:00
Spencer Janssen
9118713ded Make 'compList :: [String]', rather than Maybe. No completions is represented by [] 2007-08-03 16:04:24 +00:00
Spencer Janssen
1f41555d4c Rename 'setCompletionList' to 'refreshCompletionList' 2007-08-03 15:59:42 +00:00
Andrea Rossato
950f39761e XPrompt: added comletion and history support
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
2007-08-03 15:45:31 +00:00
Spencer Janssen
75ce0d29d6 Make the XPrompt appear on the current screen 2007-08-02 18:42:31 +00:00
Andrea Rossato
4f84466904 XPrompt: a module for easily writing graphical prompts 2007-08-02 17:15:52 +00:00