23 Commits

Author SHA1 Message Date
"Valery V. Vorotyntsev"
df33392d08 ShellPrompt.hs (showXPrompt): use a single blank 2007-10-22 19:17:41 +00:00
Andrea Rossato
051eb3b814 ShellPrompt: remove harcoded path when calling bash 2007-10-26 21:23:34 +00:00
Andrea Rossato
d875c05252 ShellPrompt: reformat the comments to complay with the module style 2007-10-26 21:19:56 +00:00
"Valery V. Vorotyntsev"
c7e078b73b ShellPrompt.hs: move `uniqSort' to XPrompt.hs 2007-10-24 14:38:20 +00:00
Spencer Janssen
f213257f65 Remove excessive import lists from ShellPrompt 2007-10-24 11:31:06 +00:00
gwern0
877999d890 Run.hs, SshPrompt.hs, ShellPrompt.hs: mv runInXTerm back into Run.hs per suggestions 2007-10-24 00:13:41 +00:00
gwern0
b70448353f ShellPrompt.hs: fmt imports and update 2007-10-19 18:13:17 +00:00
gwern0
3483054089 Run.hs, ShellPrompt.sh: mv runInXTerm to ShellPrompt.hs 2007-10-19 18:09:00 +00:00
Christian Thiemann
830945336f Move runXXX functions to one module
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.
2007-10-12 14:52:33 +00:00
Spencer Janssen
452ba366ad ShellPrompt: traverse $PATH once per invocation. Major speed improvement 2007-10-16 09:05:52 +00:00
gwern0
53c9038b53 ShellPrompt.hs: a quick optimization of nub
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.
2007-10-15 23:48:50 +00:00
Spencer Janssen
df3d489284 Remove spurious output from ShellPrompt 2007-10-11 18:28:16 +00:00
gwern0
a82a44282f ShellPrompt.hs: add getShellCompl to export list
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?
2007-10-07 22:02:36 +00:00
Devin Mullins
51d770e1e6 Maybe? What Maybe? (rollback earlier dmenu change) 2007-10-07 18:59:15 +00:00
Andrea Rossato
be8baa8324 ShellPrompt: check for executables and better error handling
Code contributed by Spencer (basically I just removed FilePath
depenency).
2007-10-07 11:01:33 +00:00
Andrea Rossato
0b3397aad3 ShellPrompt: fromMaybe requires importing Data.Maybe 2007-10-07 07:01:48 +00:00
Devin Mullins
beaead5256 change Dmenu functions to return IO/X (Maybe String)
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.
2007-10-06 07:09:59 +00:00
Andrea Rossato
509416d0d4 ShellPrompt: removed readline dependency and added escape character support 2007-10-05 11:22:50 +00:00
Alex Tarkovsky
d0adeca94a Docstring parser for generating xmonad build configs with default settings for extensions 2007-09-05 20:01:28 +00:00
Andrea Rossato
3b89f02650 ShellPrompt: quickcheck related refactoring 2007-08-17 15:57:25 +00:00
Andrea Rossato
fb2a279ce5 ShellPrompt.hs: minor haddock corrections 2007-08-04 10:44:08 +00:00
Andrea Rossato
807942087a Prompts: updated and corrected usage info 2007-08-03 13:01:58 +00:00
Andrea Rossato
8bce5f221b ShellPrompt: a graphical shell prompt
This module requires readline and so a modification to xmonad.cabal. See
usage for instructions.
2007-08-02 15:58:45 +00:00