41 Commits

Author SHA1 Message Date
Andrea Rossato
e7ec30009e XPrompt: removed unneeded parenteses 2007-10-26 22:15:05 +00:00
"Valery V. Vorotyntsev"
9f0a2a66f9 XPrompt.hs: use a single blank
Excessive blanks in prompts originate from here. Eliminate. :)
Rewrite `getLastWord' and `skipLastWord' in pointfree style.
2007-10-22 19:23:10 +00:00
Andrea Rossato
2b4179169b XPrompt: catch exceptions when running the completion function 2007-10-26 21:18:59 +00:00
gwern0
e3a96e2b5a XPrompt.hs: add sensible bindings for Home and End 2007-10-26 03:50:26 +00:00
gwern0
89ffbc20a1 XPrompt.hs: add a pasteString function and keybinding 2007-10-26 03:49:20 +00:00
"Valery V. Vorotyntsev"
906c3ccc32 XPrompt.hs (uniqSort): new function
Moved from ShellPrompt. There are at least three happy users
of this function -- ShellPrompt, SshPrompt, and ManPrompt.
2007-10-24 14:22:41 +00:00
Dmitry Kurochkin
139ce1b8c4 XPrompt.hs: fix vertical alignment of completions. 2007-10-23 18:31:29 +00:00
"Valery V. Vorotyntsev"
710aa7efb9 XPrompt.hs (keyPressHandle): Ctrl-g and Ctrl-c added to quit keystrokes
Obvious comments removed.
2007-10-20 17:09:36 +00:00
"Valery V. Vorotyntsev"
0febec2c69 XPrompt.hs: trailing whitespace cleaned 2007-10-20 17:07:19 +00:00
Andrea Rossato
a85718506b Haddock fixes 2007-10-12 10:04:16 +00:00
Andrea Rossato
574cb0baa0 Tabbed and XPrompt updated to lates Extras changes 2007-10-07 16:38:25 +00:00
Andrea Rossato
cfa8429450 XPrompt: added ^A and ^E and more
- added ^A (start of line) and ^E (end of line)
- added support for escaping spaces (see an example of it's use in the
  new ShellPrompt)
- some code cleanup: I'm now tracking changes to XPrompt also in
  modified version that supports i18n. This is the reason of some name
  changes.
2007-10-05 11:21:22 +00:00
Eric Mertens
70ef0f2d88 Add ^K and ^U support to XPrompt 2007-10-02 21:08:14 +00:00
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