aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Actions/DynamicWorkspaces.hs (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-12-19Generalize new workspace addition functions to support arbitrary insertion.nrujac1-8/+32
Ignore-this: 9f8c14b5aa9d398b3f167da0af1a8650 The current DynamicWorkspaces module only supports adding new workspaces at the start of the list of workspaces. This means when binding workspaces to keys based on the position in the list, key bindings can change as workspaces are added in removed in a far more destructive way than necessary. Instead, supporting appending and arbitrary insertion allows the user to determine where the new workspace should be added. This patch is a straight generalization of the addHiddenWorkspace' function. Rather than always using `(:)` to insert the new workspace into the list of workspaces, this patches causes it to use an arbitrary list insertion function instead. A few new functions are added to prevent breakage of external code while exported functions are left unchanged. List of new functions: appendWorkspace appendWorkspacePrompt addWorkspaceAt addHiddenWorkspaceAt Existing functions were modified to call their generalized brethren where possible without changing functionality. This patch should not change behavior for any existing users of this module. darcs-hash:20141219002309-8d489-1a2c5cacb9724bd185836691027d1aefb8a799d5.gz
2013-05-28use Data.Default wherever possible, and deprecate the things it replacesDaniel Wagner1-5/+5
Ignore-this: 898458b1d2868a70dfb09faf473dc7aa darcs-hash:20130528013909-76d51-863278165b6f149c47b08b31b34e85ddcab19f1f.gz
2012-12-31Allow removing arbitrary workspacesDmitri Iouchtchenko1-0/+1
Ignore-this: 6fce4bd3d0c5337e5122158583138e74 darcs-hash:20121231214343-7d114-8b4036fa122c1729022106d0271e2d8a796d2dfb.gz
2012-12-31Remove first-hidden restriction from X.A.DynamicWorkspaces.removeWorkspace'Dmitri Iouchtchenko1-7/+11
Ignore-this: 55fb0859e9a5f476a834ecbdb774aac8 darcs-hash:20121231214148-7d114-78826e0e2f25128ddd79a6360d7c24b72f40b0f6.gz
2012-12-27Add X.A.DynamicWorkspaces.renameWorkspaceByName.Dmitri Iouchtchenko1-5/+8
Ignore-this: 4b8aa0405de3969000b1a78eb12992 darcs-hash:20121227063531-7d114-cf51e681da21447cc691be41d313e22fb6337f38.gz
2010-10-23Export types to reduce haddock warnings.Adam Vogt1-7/+2
Ignore-this: 1cac9202784711ce0fc902d14543bab0 darcs-hash:20101023195755-1499c-57c41357d20cbf0d57522ce99bdbfff7b686ed52.gz
2011-05-27Documentation fix (issue 445)Adam Vogt1-1/+2
Ignore-this: c73b88f9567af86bd560b911e33da301 Daniel's change which broke -Wall (adding an import for haddock only) was somehow removed. Instead we can just modify the sample code to add the import. darcs-hash:20110527033521-1499c-c8541e34d750bfa8aeec79389267110d05778477.gz
2011-05-04Compile with ghc7Mats Rauhala1-5/+0
Ignore-this: 218d2e19835f1e4315c01bd6214899ce darcs-hash:20110504192455-af521-ba19a95226d2527af9fbad8ed902982f2db567db.gz
2011-04-16documentation: tell where to find a few auxiliary functions that might be ↵Daniel Wagner1-1/+7
useful in conjunction with X.A.DynamicWorkspaces Ignore-this: 1bd2232081ba045582d230b632c5bd08 darcs-hash:20110415224846-76d51-1cc38bfa8bdf61b18afef08c1244a9d56eb42817.gz
2010-03-14DynamicWorkspaces.hs: rm whitespacegwern01-1/+1
Ignore-this: 9d64301708cb1702b9b46f1068efa891 darcs-hash:20100314205951-f7719-8e10d50daafbf32e3f13d32ab21af82ff37869eb.gz
2009-11-15Minor style changes in DynamicWorkspacesAdam Vogt1-18/+15
Ignore-this: 1a6018ab134e4420a949354575a8a110 darcs-hash:20091115022751-1499c-c2f8ccf3cada9e16a5d35e87e41baa160c74e774.gz
2009-11-14X.A.DynamicWorkspaces fix doc and add behaviourAnders Engstrom1-9/+51
Ignore-this: ab7c20a9c1b43ebc6a7f4700d988fb73 Before this patch the documentation claims that it won't do anything on non-empty workspaces when it actually does. This patch fixes the documentation to reflect the actual behaviour, but also adds the behaviour promised by the documentation in other functions. It does not break configs. In addition it also provides functions to help removing empty workspaces when leaving them. darcs-hash:20091113233903-8978f-1adf2aba46b7931732b51338c3f73508e840a487.gz
2009-11-12X.A.DynamicWorkspaces: fix addWorkspace and friends so they never add ↵Brent Yorgey1-5/+11
another copy of an existing workspace Ignore-this: 5bfe8129707b038ed04383b7566b2323 darcs-hash:20091112201351-1e371-ed6aeb650d2e9d6a4c131e8f7a36b922b8f1d905.gz
2009-11-08X.A.DynamicWorkspaces: new 'addWorkspacePrompt' methodBrent Yorgey1-1/+5
Ignore-this: a3992b1b7938be80d8fd2a5a503a4042 darcs-hash:20091108170503-1e371-0d0cc44d7d9bf275a4289b8161b098f65b338192.gz
2009-10-22Refer to modm as the current modMaskAdam Vogt1-7/+7
Ignore-this: d097c7dc1746c55e1d4078a7148f9d5a This makes the config suggestions consistent with the current template. darcs-hash:20091022041126-1499c-5dd63076fdd71a61276cfc8e648bada81d9cc586.gz
2008-08-28remove myself as maintainer from modules I don't maintain or use.David Roundy1-1/+1
darcs-hash:20080828151830-72aca-75151cf20f4efc1a3d1bc324cfdbc5602f58b363.gz
2008-06-08Exporting addHiddenWorkspace, it's needed by the new ScratchpadBraden Shepherdson1-0/+3
darcs-hash:20080608045318-d53a8-b3ad374673c9428d89b0f9b5c8fb2e69c20e5865.gz
2008-02-29in Prompt.Workspace sort by official workspace order.David Roundy1-5/+7
darcs-hash:20080229223047-72aca-f66c6583d8be77207a3f083fe26be40f1f02e4b5.gz
2007-12-08Remove XMonad.Operations importsSpencer Janssen1-1/+0
darcs-hash:20071208000547-a5988-874ebc1bfa76ad6ec2191812240fa2303b2d531c.gz
2007-12-08Remove redundant importsSpencer Janssen1-3/+1
darcs-hash:20071207233827-a5988-9e41d51120499637f14d115f2cf1428edaf326bb.gz
2007-11-27DynamicWorkspaces: haddock updatesBrent Yorgey1-7/+15
darcs-hash:20071127220033-bd4d7-1636ab859e77fc9b06a8f08630004e283388b244.gz
2007-11-09add a few docs (very sparse) to DynamicWorkspaces.David Roundy1-2/+4
darcs-hash:20071109152649-72aca-447ce5fcc5c8d7c3ae9f4405fa7427f92fa5611a.gz
2007-11-09add withWorkspace prompt, which automatically creates workspace if nonexistent.David Roundy1-18/+29
darcs-hash:20071109152124-72aca-966fc515a4e1f52fc16929680e152c27d20fb60c.gz
2007-11-01fix selectWorkspace to work with new config.David Roundy1-7/+9
darcs-hash:20071101183546-72aca-01f90fa9b4a7b2b3b1b8ea2f22088d1490d07978.gz
2007-11-01HierarchifySpencer Janssen1-5/+5
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-10-18add function to rename workspaces.David Roundy1-1/+9
darcs-hash:20071018145604-72aca-d28097e49bc8ba0a939dcc87cbd6fd791682494b.gz
2007-10-17code cleanup in selectWorkspace.David Roundy1-4/+3
darcs-hash:20071016231218-72aca-0da806169b43d3b2dfebae4f83b556dadc0fdb74.gz
2007-10-17allow users to go to dynamically-added workspaces with mod-n.David Roundy1-2/+23
darcs-hash:20071016230301-72aca-e003c298f830d89d4125c5d15accb4ed71bc6241.gz
2007-10-17add modules to deal with Workspaces (select, etc) by name using XPrompt.David Roundy1-3/+13
darcs-hash:20071016223347-72aca-a0a6ab2a43a33f5901640fa2f192e0af3ef61a74.gz
2007-10-15defaultLayouts -> layoutsSpencer Janssen1-1/+1
darcs-hash:20071015205542-a5988-4636825868c99db4f3cfdcd6b1e361d78e393762.gz
2007-09-29some renaming of classes and data types.David Roundy1-2/+2
darcs-hash:20070929191238-72aca-ceb0f2a89b35460e87cf9ff935f786b5a6028fb5.gz
2007-09-26fix DynamicWorkspaces.David Roundy1-15/+11
darcs-hash:20070925220659-72aca-af6f6b56fd706bcd2b666a041e496eefb6d34875.gz
2007-09-17Match 'Remove Operations functions which have StackSet equivalents' from the ↵Spencer Janssen1-4/+3
core darcs-hash:20070917213329-a5988-b9cc2ae3e1c8740eecb9300a4b92a2dcd9c81aa1.gz
2007-08-20make Contrib use WorkspaceIdDavid Roundy1-2/+5
darcs-hash:20070820113813-72aca-30984283cb9c04185fde9c89253af00e16912c10.gz
2007-08-14clean up DynamicWorkspaces to handle layouts properly.David Roundy1-12/+16
darcs-hash:20070814183542-72aca-69bc348ac38c0a2133782d874344255ab1221821.gz
2007-08-14make DynamicWorkspace more thorough.David Roundy1-13/+28
Note: there's still a bug due to our failure to inform the old layouts to clean up. darcs-hash:20070814014548-72aca-9b66ee3deba31a15b6e0b0dd0b79847edc6fc6e3.gz
2007-08-14new module DynamicWorkspaces to add and remove workspaces.David Roundy1-0/+52
darcs-hash:20070814011501-72aca-10aa9dd1a14ac1179f8cc16ebd52b1e54a505df8.gz