aboutsummaryrefslogtreecommitdiffstats
path: root/ShellPrompt.hs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove excessive import lists from ShellPromptSpencer Janssen2007-10-241-10/+8
| | | | darcs-hash:20071024113106-a5988-0051d3dbecf820f031c2a3f9acdd04a430b0dd4a.gz
* Run.hs, SshPrompt.hs, ShellPrompt.hs: mv runInXTerm back into Run.hs per ↵gwern02007-10-241-7/+0
| | | | | | suggestions darcs-hash:20071024001341-f7719-6ea9cf7134f0300c53e85cddfff1e320039c115b.gz
* ShellPrompt.hs: fmt imports and updategwern02007-10-191-9/+10
| | | | darcs-hash:20071019181317-f7719-abc19fe0c3776416ae754d75fbfb467f8b66e942.gz
* Run.hs, ShellPrompt.sh: mv runInXTerm to ShellPrompt.hsgwern02007-10-191-0/+24
| | | | darcs-hash:20071019180900-f7719-6d6ef4a67f2ccae639e9e79c49fd80dd32d746c5.gz
* Move runXXX functions to one moduleChristian Thiemann2007-10-121-1/+1
| | | | | | | | | This patch takes runProcessWithInput out of Dmenu, runProcessWithInputAndWait out of Dzen, and runInXTerm out of RunInXTerm and collects them in one central module called Run. This way, other modules may include Run instead of Dmenu to get what they want without giving the impression of making use of dmenu. darcs-hash:20071012145233-8602e-6f8fb66c62afecdbd52a6a9122b5ecb55fc7f8bc.gz
* ShellPrompt: traverse $PATH once per invocation. Major speed improvementSpencer Janssen2007-10-161-24/+28
| | | | darcs-hash:20071016090552-a5988-eed1d245021b0284bcd5b90f1fdc93d59eb2dd7f.gz
* ShellPrompt.hs: a quick optimization of nubgwern02007-10-161-1/+2
| | | | | | I saw some complaints about ShellPrompt being slow - and noticed it myself - and it seems ShellPrompt uses 'nub' in an awkward place to uniquefy input. Nub doesn't perform well on long lists, but I once ran into a similar problem and the suggested solution was something clever: convert to a Set and then back to a List. Sets can't have duplicate entries, and they uniquefy faster than nub. The price is that the output is not sorted the same as nub's output would be, but this is OK because the output of (toList . fromList) is immediately passed to 'sort' - which should then produce the same output for both versions. I haven't really tested this but on long directories this should help. darcs-hash:20071015234850-f7719-ce02426337ffbbfb15dd1999713075c5aada81bd.gz
* Remove spurious output from ShellPromptSpencer Janssen2007-10-111-1/+0
| | | | darcs-hash:20071011182816-a5988-c95c4d60081d46de24269b70cbffe1dccc7e6f11.gz
* ShellPrompt.hs: add getShellCompl to export listgwern02007-10-081-4/+5
| | | | | | getShellCompl is useful for writing prompts in Config.hs or even full standalone prompts; and personally, if a small utility function like 'split' can be exported, how much more so something useful like getShellCompl? darcs-hash:20071007220236-f7719-7b0a4c794bdbce3b19a785bbe01f734e002114c2.gz
* Maybe? What Maybe? (rollback earlier dmenu change)Devin Mullins2007-10-071-2/+1
| | | | darcs-hash:20071007185915-78224-5dc94fbbbc960a853654321317e2b8ba54d8be2a.gz
* ShellPrompt: check for executables and better error handlingAndrea Rossato2007-10-071-18/+20
| | | | | | | Code contributed by Spencer (basically I just removed FilePath depenency). darcs-hash:20071007110133-32816-49cab7bd033569a16c55a3d1bfde3aba8c9fc3ee.gz
* ShellPrompt: fromMaybe requires importing Data.MaybeAndrea Rossato2007-10-071-0/+1
| | | | darcs-hash:20071007070148-32816-495ab0d050b28ae756ced9634dc058098ad1004b.gz
* change Dmenu functions to return IO/X (Maybe String)Devin Mullins2007-10-061-1/+1
| | | | | | | | | | | | dmenu exits with code 1 when you hit Escape, and I wanna create a contrib that takes advantage of that. This required changes in four contribs (Commands, DirectoryPrompt, ShellPrompt, and WorkspaceDir), and might require changes in users' Configs. Also, I'm not sure some of the changes I made to the client code are very Haskelly. Would appreciate input there. darcs-hash:20071006070959-78224-eeefb4300d6d3de7b199f2b1ad37ba43384e03f1.gz
* ShellPrompt: removed readline dependency and added escape character supportAndrea Rossato2007-10-051-18/+24
| | | | darcs-hash:20071005112250-32816-1a6ded5818357ce989dd7cadf6eb0d0fc9503ef5.gz
* Docstring parser for generating xmonad build configs with default settings ↵Alex Tarkovsky2007-09-051-0/+5
| | | | | | for extensions darcs-hash:20070905200128-bd4fb-ff90db3eb7ebce6ea75956f19ebc6c35d36c08d4.gz
* ShellPrompt: quickcheck related refactoringAndrea Rossato2007-08-171-2/+6
| | | | darcs-hash:20070817155725-32816-b4d794d7fabae947a338aaab6fbe4dbb3729c53a.gz
* ShellPrompt.hs: minor haddock correctionsAndrea Rossato2007-08-041-16/+20
| | | | darcs-hash:20070804104408-32816-1fa6a469e31e8f6003e2df71e87b4ffaca3b500f.gz
* Prompts: updated and corrected usage infoAndrea Rossato2007-08-031-3/+4
| | | | darcs-hash:20070803130158-32816-613fcac848ec0874716f794e91194fc302e93810.gz
* ShellPrompt: a graphical shell promptAndrea Rossato2007-08-021-0/+82
This module requires readline and so a modification to xmonad.cabal. See usage for instructions. darcs-hash:20070802155845-32816-ea10113cc8c38f542b2b6a4812d6980ada80a750.gz