aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Prompt/Shell.hs (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-01-30Make commandToComplete in XMonad.Prompt.Shell complete last wordmd143rbh7f1-1/+0
Ignore-this: b0fe22fdd7b9409835fd0ca069f2e01a The following change from 2013-02-09 breaks shell completion for me: hunk ./XMonad/Prompt/Shell.hs 65 + commandToComplete _ c darcs-hash:20140130200050-57ebf-1c86acb3860e9860cd99ec11f03d779622aea011.gz
2013-06-17Catch exceptions when finding commands on PATH in Prompt.ShellThomas Tuegel1-6/+2
Ignore-this: 5a4d08c80301864bc14ed784f1054c3f darcs-hash:20130616230219-30370-faf7ce8665584673a3d0a5a1a609eebb56ab2b66.gz
2013-05-28use Data.Default wherever possible, and deprecate the things it replacesDaniel Wagner1-1/+1
Ignore-this: 898458b1d2868a70dfb09faf473dc7aa darcs-hash:20130528013909-76d51-863278165b6f149c47b08b31b34e85ddcab19f1f.gz
2013-02-09spawn command when no completion is available (if alwaysHighlight is True); ↵c.lopez1-0/+1
changes commandToComplete in Prompt/Shell to complete the whole word instead of using getLastWord Ignore-this: ca7d354bb301b555b64d5e76e31d10e8 darcs-hash:20130209190456-c3db2-5bb4a8a2aa97c180814ca90a090054efc36d4cfe.gz
2012-11-09Use Control.Exception.catch explitly to avoid warningsAdam Vogt1-4/+3
Ignore-this: 2cebdfe604c581f2b4a644e9aed726c7 The base that comes with ghc-7.6.1 no longer includes Prelude.catch; so these modules were changed so that there is no warning for import Prelude hiding (catch) At the same time these changes should be compatible with older GHCs, since the catch being has never been the one in the Prelude. darcs-hash:20121109013506-1499c-c593662b0780eb49287efcbfe0e9796f7dd57c73.gz
2012-08-11Correctly get the autocompletion item when alwaysHighlight in XMonad.Prompt ↵c.lopez1-12/+12
is True Ignore-this: fa2600df210c7d3472a797f19fb31a7 darcs-hash:20120811104805-c3db2-130ba7583c5498a5d8b30f075d394db203f65329.gz
2011-12-07P.Shell documentation and add missing unsafePrompt exportAdam Vogt1-3/+11
Ignore-this: a03992ffdc9c1a0f5bfa6dafc453b587 Haddock (version 2.9.2 at least) does not attach documentation to any of a b or c when given: -- | documentation a,b,c :: X darcs-hash:20111207163951-1499c-63c977052b16fcd79857712ac39bd155cb6461d1.gz
2011-11-28XMonad.Prompt.Shell: improve 'env' documentation to cover goodgrue's problemgwern01-1/+3
Ignore-this: 7b652a280960cbdf99c236496ca091b0 darcs-hash:20111127231507-f7719-d135757d9c584e50d0cd4112d1a4d2fe87841f91.gz
2011-11-18Be consistent with core utf8-string usage.Adam Vogt1-3/+3
Ignore-this: 9de0599d0fb888c58e11598d4de9599e Now that spawn assumes executeFile takes a String containing utf8 codepoints (and takes an actual String as input) adjust Prompt.Shell to avoid double encoding. U.Run functions are updated to be consistent with spawn. darcs-hash:20111118184745-1499c-0f5bee188cc9540d2747db1adbf87619011a5443.gz
2011-11-11Correct completions of utf8-named file in X.P.ShellAdam Vogt1-4/+5
Ignore-this: 9aa10143f313b06afdb11e61777a7d20 darcs-hash:20111111215655-1499c-778c2896f89bf1085217059c72b05857c04931a2.gz
2011-07-31GHC 7 compatDaniel Wagner1-2/+7
Ignore-this: 17a43a709e70ebccc925e016d7057399 * true error: more modules export foldl/foldl'/foldr, so explicitly use the Data.Foldable one * -Werror error: transition from Control.OldException to Control.Exception, assuming everything was IOException darcs-hash:20110731170850-76d51-71271524485f6d10f84521f271182bea5085d400.gz
2010-06-15remove decodeInput/encodeOutputgwern01-50/+50
Ignore-this: 2ed6a014130dba95c6b0a6fcac055110 see http://code.google.com/p/xmonad/issues/detail?id48 they are just synonyms for 2 utf8-string functions, and don't really help darcs-hash:20100614232300-f7719-66f0606d9c7323186cb6aa56dff11c506bb79c4e.gz
2010-01-12suppress some warnings under ghc 6.12.1 and clean up redundant imports to ↵Brent Yorgey1-1/+0
get rid of some others. Ignore-this: bf3487b27036b02797d9f528a078d006 darcs-hash:20100112172507-1e371-1b466e62ac727b196330c72c8553116282ef5702.gz
2009-12-24X.P.Shell, filter empty string from PATHTim Horton1-1/+1
Ignore-this: 1aec55452f917d0be2bff7fcf5937766 doesDirectoryExist returns True if given an empty string using ghc < darcs-hash:20091224033217-1db5e-f87f8470346c2684d5b324048320e15f50f30377.gz
2009-10-22Refer to modm as the current modMaskAdam Vogt1-3/+3
Ignore-this: d097c7dc1746c55e1d4078a7148f9d5a This makes the config suggestions consistent with the current template. darcs-hash:20091022041126-1499c-5dd63076fdd71a61276cfc8e648bada81d9cc586.gz
2009-09-28minor hlint cleanup of Prompt and XMonad.Prompt.* sub-modulessean.escriva1-1/+1
Ignore-this: 25e71f59bdcc5bf94c2d6f476833216b darcs-hash:20090928204443-29414-d1844586f2955c8b76d971b20d6e2b6c1ea91d4d.gz
2009-06-22update callers of safeSpawngwern01-1/+1
Ignore-this: 484eca17b9877f7d587fc5bce8c5ae8a darcs-hash:20090622201423-f7719-e2e02429f80ee2ef794680ebbffda67f1847835c.gz
2009-03-12Prompt.Shell: escape ampersandValery V. Vorotyntsev1-2/+1
Ignore-this: 7200b76af8109bab794157da46cb0030 Ampersand (&) is a special character and should be escaped. darcs-hash:20090312091314-752c4-e16dcbdf05ea59db8b2e02d3157cd98ac2734d9b.gz
2009-01-17Add XMonad.Actions.SpawnOnSpencer Janssen1-2/+3
Ignore-this: 63869d1ab11f2ed5aab1690763065800 darcs-hash:20090117040432-25a6b-306aa18fed69a47197ca8c349cf6452939db5188.gz
2008-04-01forgot a haddock for getEditor in Shell.hsgwern01-0/+1
darcs-hash:20080401022012-f7719-daae98e66ffd31b165a997b82f67d2a0a4d390a4.gz
2008-04-01Shell.hs: +getBrowser, getEditor, helper functiongwern01-0/+19
The helper function asks the shell for the value of a variable, else returns the second argument. getBrowser and getEditor obviously specialize it for two particular possibly queries darcs-hash:20080401013447-f7719-ef866971330f39e4938445e645a726a56707d04f.gz
2008-03-23added RunOrRaisePrompt, exported getCommands from ShellJustin Bogner1-0/+1
darcs-hash:20080323222632-18f27-a9eb1ed596a12f474f45f9d40a8f981ff01326d4.gz
2008-03-02Shell: add support for UTF-8 localesAndrea Rossato1-5/+5
darcs-hash:20080302095924-32816-62d05666cf2d7c3897055aa20afff0f0c31eda1f.gz
2008-02-17some code formattingAndrea Rossato1-9/+9
darcs-hash:20080217124434-32816-3ea034e6955a1a8d674f84d99fcc8c96df78a359.gz
2008-02-16Shell: escape the string in the command line onlyAndrea Rossato1-2/+3
darcs-hash:20080216133651-32816-c092df2db541278400906696550f43b6052a5e9a.gz
2008-02-16Prompt.Shell: if there's just one completion and it is a directory add a ↵Andrea Rossato1-2/+8
trailing slash darcs-hash:20080216114005-32816-f4b424bd543885bff361b75ad1cc7e7511260f6a.gz
2007-12-26Don't bother checking executable bits of items in $PATH, yields a ↵Spencer Janssen1-10/+2
significant speed-up darcs-hash:20071226032412-a5988-0de67a84893bbcf766a111afe329d6656fb51887.gz
2007-11-21Updated documentation of all prompts in XMonad.PromptAndrea Rossato1-6/+3
darcs-hash:20071121142715-32816-d7bc698f2a035139bf7a512af20804c872b6d467.gz
2007-11-21Shell: small doc fixAndrea Rossato1-2/+2
darcs-hash:20071121141013-32816-56d68d4aec55a79510af79e993469ffa74a472d6.gz
2007-11-18Prompt/*: add XConfig variable to keybindings in doc.Joachim Fasting1-2/+2
darcs-hash:20071118144849-928c4-27456c3d84792fde8812db60dec0fa7878a0f3c4.gz
2007-11-17Prompt/Shell.hs: fix invalid module import in usage doc.Joachim Fasting1-1/+1
darcs-hash:20071117224614-928c4-f3676bffbfc1d7e46f4e6280bb7fed2a9ebe412d.gz
2007-11-05-Wall policeSpencer Janssen1-1/+1
darcs-hash:20071105060036-a5988-67e0d7402a87ae5d672e5b556a5a03caf6ad5559.gz
2007-11-01HierarchifySpencer Janssen1-8/+8
darcs-hash:20071101201059-a5988-fc1f1262bec1b69e13ba18ae7cefeafc8c4471d4.gz
2007-10-22ShellPrompt.hs (showXPrompt): use a single blankValery V. Vorotyntsev1-1/+1
darcs-hash:20071022191741-ae588-026bde25c8c54722f9526cc40e5ed4fd7d52a5f5.gz
2007-10-26ShellPrompt: remove harcoded path when calling bashAndrea Rossato1-1/+1
darcs-hash:20071026212334-32816-5205f22387919d73d029ccd7da378efefec4f3e3.gz
2007-10-26ShellPrompt: reformat the comments to complay with the module styleAndrea Rossato1-8/+14
darcs-hash:20071026211956-32816-5c19f3ab7211bdd70702beb90a691b110684cb7b.gz
2007-10-24ShellPrompt.hs: move `uniqSort' to XPrompt.hsValery V. Vorotyntsev1-4/+0
darcs-hash:20071024143820-ae588-df2714f8e495275cafc2514e3cf4aabc886b36d4.gz
2007-10-24Remove excessive import lists from ShellPromptSpencer Janssen1-10/+8
darcs-hash:20071024113106-a5988-0051d3dbecf820f031c2a3f9acdd04a430b0dd4a.gz
2007-10-24Run.hs, SshPrompt.hs, ShellPrompt.hs: mv runInXTerm back into Run.hs per ↵gwern01-7/+0
suggestions darcs-hash:20071024001341-f7719-6ea9cf7134f0300c53e85cddfff1e320039c115b.gz
2007-10-19ShellPrompt.hs: fmt imports and updategwern01-9/+10
darcs-hash:20071019181317-f7719-abc19fe0c3776416ae754d75fbfb467f8b66e942.gz
2007-10-19Run.hs, ShellPrompt.sh: mv runInXTerm to ShellPrompt.hsgwern01-0/+24
darcs-hash:20071019180900-f7719-6d6ef4a67f2ccae639e9e79c49fd80dd32d746c5.gz
2007-10-12Move runXXX functions to one moduleChristian Thiemann1-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
2007-10-16ShellPrompt: traverse $PATH once per invocation. Major speed improvementSpencer Janssen1-24/+28
darcs-hash:20071016090552-a5988-eed1d245021b0284bcd5b90f1fdc93d59eb2dd7f.gz
2007-10-16ShellPrompt.hs: a quick optimization of nubgwern01-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
2007-10-11Remove spurious output from ShellPromptSpencer Janssen1-1/+0
darcs-hash:20071011182816-a5988-c95c4d60081d46de24269b70cbffe1dccc7e6f11.gz
2007-10-08ShellPrompt.hs: add getShellCompl to export listgwern01-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
2007-10-07Maybe? What Maybe? (rollback earlier dmenu change)Devin Mullins1-2/+1
darcs-hash:20071007185915-78224-5dc94fbbbc960a853654321317e2b8ba54d8be2a.gz
2007-10-07ShellPrompt: check for executables and better error handlingAndrea Rossato1-18/+20
Code contributed by Spencer (basically I just removed FilePath depenency). darcs-hash:20071007110133-32816-49cab7bd033569a16c55a3d1bfde3aba8c9fc3ee.gz
2007-10-07ShellPrompt: fromMaybe requires importing Data.MaybeAndrea Rossato1-0/+1
darcs-hash:20071007070148-32816-495ab0d050b28ae756ced9634dc058098ad1004b.gz
2007-10-06change Dmenu functions to return IO/X (Maybe String)Devin Mullins1-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