aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Prompt.hs (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-03-02Font and XUtils: add UTF-8 support and various fixes related to XFTAndrea Rossato1-3/+5
- printStringXMF: use the background color for XFT fonts too - textWidthXMF now returns the text width even with xft fonts - textExtentsXMF will now return only the ascend and the descent of a string. - stringPosition now takes the display too - add support for UTF-8 locales: if the contrib library is compiled with the 'with_xft' or the 'with_utf8' option the prompt and the decoration system will support UTF-8 locales - this requires utf8-strings. darcs-hash:20080302095712-32816-f3d6d06ff9d921288b1625e4bfd643013d2075ec.gz
2008-02-17Prompt: regenerate completion list if there's just one completionAndrea Rossato1-6/+7
darcs-hash:20080217132734-32816-89f7cd67e3efb65eb2bbd0b553f04ba8c4fc973b.gz
2008-02-17some code formattingAndrea Rossato1-1/+1
darcs-hash:20080217124434-32816-3ea034e6955a1a8d674f84d99fcc8c96df78a359.gz
2008-02-16Prompt: comment only (clafiry completionToCommand uses)Andrea Rossato1-5/+7
darcs-hash:20080216181620-32816-0829370170cd174d12c57bc9e2fdfff1c6e65ab2.gz
2008-02-16Prompt: comment only (remove confusing remarks about commandToComplete)Andrea Rossato1-4/+2
darcs-hash:20080216180412-32816-2ab2805db2d6cb0207d3d0da64696f79eba9e180.gz
2008-02-16Prompt: haddock fixes onlyAndrea Rossato1-24/+31
darcs-hash:20080216172331-32816-8b5de92d2cd4bed79a02d51b4efc53c4d7738b86.gz
2008-02-16Prompt: add some methods to make completions more flexibleAndrea Rossato1-18/+47
- now it is possible to decide if the prompt will complete the last word of the command line or the whole line (default is the last word); - completing the last word can be fine tuned by implementing 'commandToComplete' and 'completionToCommand': see comments for details; - move mkComplFunFromList' from TagWindows to Prompt. darcs-hash:20080216133454-32816-86eba16c4c73357b5bf6fee185c652d5ecd75521.gz
2008-02-16Prompt: added nextCompletion and commandToComplete methods to fine tune ↵Andrea Rossato1-21/+29
prompts' completion functions darcs-hash:20080216113723-32816-d9d5e1ea31cb1477bbcd9710e08d98bb4ab3fe15.gz
2008-02-06Update to safer initColor apiDon Stewart1-4/+4
darcs-hash:20080206192232-cba2c-fe41eae586cdcde8b8fa18789440175c4cdd0eaa.gz
2008-01-26Prompt: code formatting onlyAndrea Rossato1-29/+28
darcs-hash:20080126093234-32816-da806988deb403ad4052e88607492eadf2d7a190.gz
2008-01-13Prompt: clean up and optimize moveWord a bitAndrea Rossato1-10/+6
darcs-hash:20080113164745-32816-611bd85c3966132984e76b1d97e5934d953a796f.gz
2008-01-13Prompt: added moveWord to move the cursor to the word boundariesAndrea Rossato1-0/+21
The actions have been bound to ctrl+Left and Right darcs-hash:20080113123529-32816-9513798a80831d145fba8dceb4612b40765b080e.gz
2008-01-10de-obfuscate the initState and set the init offset to the length of the ↵Andrea Rossato1-1/+15
default text darcs-hash:20080110140951-32816-fa36f4781645ad428c10226c64895ca482d6323a.gz
2008-01-09prompt: Allow to provide a default text in the prompt config.nicolas.pouillard1-1/+3
darcs-hash:20080109213916-94725-806649257a0bc1b5d7b9ac423d82e03cd240cddb.gz
2007-12-28textExtentsXMF doesn't require the displayAndrea Rossato1-2/+2
darcs-hash:20071228125913-32816-e6193e40cb78fed678761c550644a7c64062cb56.gz
2007-12-24Prompt.hs: mv .xmonad_history into .xmonad/gwern01-2/+2
See my email to mailing list. This will slightly break anyone who upgrades while running and expects to see their prompt history, and leave a stray file, I think, but nothing else, and it'll permanently improve tab-completion, and is tidier. darcs-hash:20071224054610-f7719-a5f5baa1d6aa19206ac0809d81dee70aba2b9d29.gz
2007-12-08Remove XMonad.Operations importsSpencer Janssen1-1/+0
darcs-hash:20071208000547-a5988-874ebc1bfa76ad6ec2191812240fa2303b2d531c.gz
2007-12-08Prune more importsSpencer Janssen1-1/+0
darcs-hash:20071207235116-a5988-563cabf7a60a879beb0eb54c9e352a1c27b7729f.gz
2007-12-08Remove redundant importsSpencer Janssen1-2/+0
darcs-hash:20071207233827-a5988-9e41d51120499637f14d115f2cf1428edaf326bb.gz
2007-11-28refactor XMonad.Prompt, add new modules XMonad.Prompt.{Input,Email}Brent Yorgey1-19/+33
XMonad.Prompt.Input is a new module which provides a framework for prompting the user for input and passing it along to some other action, useful for building actions which require user input. XMonad.Prompt.Email is a simple example of the use of XMonad.Prompt.Input, which prompts the user for a recipient, subject, and body, and sends a one-line email. I also made a small refactoring to XMonad.Prompt in order to support XMonad.Prompt.Input. darcs-hash:20071128142417-bd4d7-659505bd53d074cd3d11df65014a722b6275d57c.gz
2007-11-19Prompt: comment onlyAndrea Rossato1-1/+1
darcs-hash:20071119000357-32816-ad0af5478f4d4214b84d1a43cf9ca66efba445a1.gz
2007-11-17Port XPrompt to XMonad.Util.Font, various other refactoringsSpencer Janssen1-33/+23
darcs-hash:20071116232743-a5988-555816e43cf5559966bee4c22e21e8a2f46edb92.gz
2007-11-19Miscellaneous spell-checkingShachaf Ben-Kiki1-4/+4
darcs-hash:20071118230319-bffde-6c56202afece4ecc55d48d37bde3f80edaff66f7.gz
2007-11-16Export XMonadFont's constructors, use those constructors in XMonad.PromptSpencer Janssen1-2/+2
darcs-hash:20071116125157-a5988-4d24d051381c8ccc531cfab34a052098497a8cc9.gz
2007-11-16Add Font layer supporting an Xft backend. Make Tabbed.hs a user of this layer.Clemens Fruhwirth1-8/+7
darcs-hash:20071116120653-ed0c4-9a8c7fbac69976bbc85701338f89cf085a1f1ddf.gz
2007-11-15Prompt: haddock fixesAndrea Rossato1-3/+1
darcs-hash:20071115204828-32816-c30269b8411128c3e515aceb867bc1118398fe4a.gz
2007-11-15Prompt: just code formattingAndrea Rossato1-8/+8
darcs-hash:20071115191012-32816-ff1d5fdd9df9a69f84bfccd84a83637a2a9b26a5.gz
2007-11-15Prompt: add killWord edit actionAndrea Rossato1-5/+23
With this bindings: ^ - Delete kill forward ^ - BackSpace kill backward darcs-hash:20071115190734-32816-d086d681a480cf9388b04a439d1920b3ee945533.gz
2007-11-06Prompt.hs: update namesgwern01-3/+3
darcs-hash:20071106192054-f7719-2e327851fe2179414ff4a7f8eced75428cef5f0d.gz
2007-11-01HierarchifySpencer Janssen1-3/+3
darcs-hash:20071101201059-a5988-fc1f1262bec1b69e13ba18ae7cefeafc8c4471d4.gz
2007-11-01Use hierarchical module names from the coreSpencer Janssen1-2/+2
darcs-hash:20071101182824-a5988-e02ade829d66f49dd6b303b7a797933251c44164.gz
2007-11-01XPrompt: don't import XMonad.configSpencer Janssen1-1/+1
darcs-hash:20071101074149-a5988-5462a9333e4d79b175e379e723e9c74de4b6187d.gz
2007-10-27XPrompt: removed unneeded parentesesAndrea Rossato1-2/+2
darcs-hash:20071026221505-32816-6b1d59ea7fe4027f1114113feb9dec54200ba32b.gz
2007-10-22XPrompt.hs: use a single blankValery V. Vorotyntsev1-5/+3
Excessive blanks in prompts originate from here. Eliminate. :) Rewrite `getLastWord' and `skipLastWord' in pointfree style. darcs-hash:20071022192310-ae588-c707fe405f132fffa448bbe38b44d5c5f8c4d912.gz
2007-10-26XPrompt: catch exceptions when running the completion functionAndrea Rossato1-1/+2
darcs-hash:20071026211859-32816-b161b40ed1ba2fcca8c32f85fc2de821f10c2fe6.gz
2007-10-26XPrompt.hs: add sensible bindings for Home and Endgwern01-0/+2
darcs-hash:20071026035026-f7719-d8db907e34e2347c602cdb610f4333790801ac00.gz
2007-10-26XPrompt.hs: add a pasteString function and keybindinggwern01-0/+6
darcs-hash:20071026034920-f7719-a0521e6998e3641deb7a7fc7a733013fcea73b82.gz
2007-10-24XPrompt.hs (uniqSort): new functionValery V. Vorotyntsev1-0/+6
Moved from ShellPrompt. There are at least three happy users of this function -- ShellPrompt, SshPrompt, and ManPrompt. darcs-hash:20071024142241-ae588-d6fa3260081982849a235da5b9632216dd954b5d.gz
2007-10-23XPrompt.hs: fix vertical alignment of completions.Dmitry Kurochkin1-1/+1
darcs-hash:20071023183129-903e8-c13f17ed19adaf76c52dfbf3c416f76b78f1cb0c.gz
2007-10-20XPrompt.hs (keyPressHandle): Ctrl-g and Ctrl-c added to quit keystrokesValery V. Vorotyntsev1-16/+7
Obvious comments removed. darcs-hash:20071020170936-ae588-721702bc4e4d6558c54c858f54a6db2238bcbede.gz
2007-10-20XPrompt.hs: trailing whitespace cleanedValery V. Vorotyntsev1-30/+30
darcs-hash:20071020170719-ae588-2e8b43ffa1af11c05337a14ee0ed0cf45baf9544.gz
2007-10-12Haddock fixesAndrea Rossato1-4/+4
darcs-hash:20071012100416-32816-049c57f0dbc5d794db1b66295429ba6cd5b7b160.gz
2007-10-07Tabbed and XPrompt updated to lates Extras changesAndrea Rossato1-3/+2
darcs-hash:20071007163825-32816-8ebe1d13dff1ac21304138a19b6ae883a54f71c7.gz
2007-10-05XPrompt: added ^A and ^E and moreAndrea Rossato1-73/+83
- 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. darcs-hash:20071005112122-32816-797e755161388185fc2db63b03552f59632aca22.gz
2007-10-02Add ^K and ^U support to XPromptEric Mertens1-3/+20
darcs-hash:20071002210814-b49f3-044f20328be2d3a51ddb2ef0d0e7d8b755af749e.gz
2007-09-28Use LANGUAGE pragmas over -fglasgow-extsSpencer Janssen1-1/+2
darcs-hash:20070928181614-a5988-85415ed570690a468bf92cdf0f66d69494cecf4e.gz
2007-09-18XPrompt.hs: replace 'borderWidth' with 'borderPixel'gwern01-7/+7
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. darcs-hash:20070918162950-f7719-63aede31072155fee70d3d01cb635636ff2a457c.gz
2007-08-30XPrompt: a very long string in the completion list can lead to a division by ↵Andrea Rossato1-1/+1
zero darcs-hash:20070830141524-32816-beeaa150ea23704c1a92f1ac3d533777fcd331e8.gz
2007-08-28XPrompt.hs: remove debugging bitsAndrea Rossato1-1/+0
darcs-hash:20070828081235-32816-8a73d54e7a91e7d17efb31cd0aee0568a1f53446.gz
2007-08-27make code more compact in XPrompt.David Roundy1-41/+18
darcs-hash:20070827191830-72aca-4b9995634a6287d18776b6909690428bb481f8cf.gz