aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Actions/GridSelect.hs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* use Data.Default wherever possible, and deprecate the things it replacesDaniel Wagner2013-05-281-6/+12
| | | | | | Ignore-this: 898458b1d2868a70dfb09faf473dc7aa darcs-hash:20130528013909-76d51-863278165b6f149c47b08b31b34e85ddcab19f1f.gz
* Fixed X.A.GridSelect to be consistent in the way it (now) sorts the shownJesper Reenberg2012-05-011-6/+34
| | | | | | | | | | | | | | | Ignore-this: 1d0991f9fb44e42f5d1c5a4f427ea661 elements when modifying the searchString. The implemented ordering sorts based on how "deep the needle is in the haystack", meaning that searching for "st" in the elements "Install" and "Study" will order them as "Study" and "Install". Previously there was no ordering and when using GridSelect to select workspaces, the ordering was not consistent, as the list of workspaces (if not modified manually) is ordered by last used. In this case either "Study" or "Install" would come first depending on which workspace was last visited. darcs-hash:20120501180415-abfbf-31b5c20e65c1ddb5835c61259d363fd3f67f471b.gz
* Export types to improve haddock links.Adam Vogt2011-11-181-1/+4
| | | | | | Ignore-this: 254c5a6941009701dc444043b0eeace5 darcs-hash:20111118190642-1499c-5861d33fcb55726865d62a67a00c91f68564ae2d.gz
* get ready for GHC 7.4: Num a no longer implies (Eq a, Show a)Daniel Wagner2011-11-151-2/+2
| | | | | | Ignore-this: faa34d69ddd27b98c6507740b42c9e97 darcs-hash:20111115022650-76d51-10a2e23210b65268ffa3aa606ebba72b6986e77e.gz
* add-movenext-moveprev-bindingsBen Boeckel2011-05-151-17/+23
| | | | | | | | Ignore-this: 2ad1ce1de0c2954b2946551dd62e6b3b Adds default bindings to GridSelect for the moveNext and movePrev motions. darcs-hash:20110515193326-24e3f-6ee8e182ecb4ba179bf038cef88e1d8d78f05e75.gz
* Extend GridSelect navigationIlya Portnov2011-05-151-1/+26
| | | | | | | Ignore-this: f2d279b8e46e6eaf3477fdc5cf77be63 Add moveNext and movePrev, which move selection to next/previous item. darcs-hash:20110515154246-c5067-e117b3d5753e868963b36a10d2e17ccc427a97b7.gz
* Fix A.Gridselect image links (thanks dobblego)Adam Vogt2011-01-201-2/+2
| | | | | | Ignore-this: e2b334e13c5900a72daff866270b13db darcs-hash:20110119230113-1499c-af661ea21a9b925d5ec2f2f5ed05497b25b73387.gz
* Rename state in A.Gridselect to avoid name shadowing (mtl-2)Adam Vogt2010-11-161-23/+22
| | | | | | Ignore-this: cd81e11ae9f5372ddd71f0c2b60675d5 darcs-hash:20101115232222-1499c-679e09cc62a0e689dd8025e9c996db2fef0b4b0d.gz
* Substring search support for X.A.GridSelect. As keymaps get more complicated ↵Clemens Fruhwirth2010-11-021-78/+181
| | | | | | | | to support different styles, the gs_navigate element is fundamentially changed. Ignore-this: 95610ac8eb781cd74f6c3ce9e36ec039 darcs-hash:20101102211213-ed0c4-283fe8b940c07c5bdb72aedbf681f8e450405cfc.gz
* Make substring search case insensitiveClemens Fruhwirth2010-10-161-1/+3
| | | | | | Ignore-this: dce1ae9e4164c24447ae9c79c4557f11 darcs-hash:20101016212904-ed0c4-97eb2fdce04a77c3ea64a65e4bd5074ee6256453.gz
* Introduce grayoutAllElements in X.A.GridSelectClemens Fruhwirth2010-10-161-1/+13
| | | | | | Ignore-this: 78ca0416b12a49965db876c77e02387f darcs-hash:20101016212559-ed0c4-081f1b143a7935f5e1336442c78cf0654c357fe9.gz
* Add substring filter to td_elementmapClemens Fruhwirth2010-10-161-2/+5
| | | | | | Ignore-this: d28b7173095c504ae0e9209303e4468a darcs-hash:20101016183644-ed0c4-224c6bb4365206fa99911254c07861bc97b5f164.gz
* Refactor for ad-hoc element and position matching turning td_elementmap into ↵Clemens Fruhwirth2010-10-161-4/+11
| | | | | | | | a function using the new td_availSlot and td_elements fields Ignore-this: 85e644a27395e97315efd1ed7a926da8 darcs-hash:20101016183554-ed0c4-b06a89b9c704034777dfa622093d64d25ed507ab.gz
* Remove nub from diamondLayer in X.A.GridSelectClemens Fruhwirth2010-10-161-5/+7
| | | | | | Ignore-this: fe290f3712fa1e122e0123d3f87f418b darcs-hash:20101016183132-ed0c4-9a57a5a4047fc12a15ca000455608b52db8f52d5.gz
* Convert access of td_elementmap from field styled to function call styled in ↵Clemens Fruhwirth2010-10-161-8/+9
| | | | | | | | X.A.GridSelect Ignore-this: b46942bf7ca0bd451b0b402ea8b01bf7 darcs-hash:20101016164757-ed0c4-15dcefcef583e40f4b8f0cb37518bc70a909dcb4.gz
* Make use of field names when constructing TwoDState in X.A.GridSelectClemens Fruhwirth2010-10-161-8/+7
| | | | | | Ignore-this: 17d947c11e6cb4c64e04fd4754568337 darcs-hash:20101016164151-ed0c4-288ca4d4b5be15053a2ee2486d0e6ef80ece2ac1.gz
* X.A.GridSelect: documentation typo fixTomas Janousek2009-12-111-2/+2
| | | | | | | | Ignore-this: 521bef2a73a9e969d7a96defb555177b spotted by Justin on IRC darcs-hash:20091211182515-c9ff5-01b20f90615b7f88f1c61f521a2e60f8670777af.gz
* A.GridSelect shouldn't grab keys if there are no choices.Adam Vogt2009-12-101-0/+1
| | | | | | | | | Ignore-this: 48509f780120014a10b32e7289369f32 Thanks thermal2008 in #xmonad for bringing up the corner case when gridselect is run with an empty list of choices. darcs-hash:20091210183038-1499c-b1c6ae201f7ce908ad09274cef7dd10fe83dd5c2.gz
* Rename gridselectViewWorkspace to gridselectWorkspace, add another example.Adam Vogt2009-11-121-3/+7
| | | | | | | | | Ignore-this: 462cf1c7f66ab97a1ce642977591a910 The name should be more general to suggest uses other than just viewing other workspaces. darcs-hash:20091112211435-1499c-f81d9c42117c42149d6fe9e7b0a87e6f3e19e19b.gz
* Add gridselectViewWorkspace in X.A.GridSelectDaniel Schoepe2009-11-091-0/+9
| | | | | | Ignore-this: 5543211e9e3fd325cb798b004635a525 darcs-hash:20091109155815-7f603-3268ca3679728a4493365b98bdfef4066f8fef0f.gz
* Inline tupadd function in A.GridSelectAdam Vogt2009-11-011-4/+1
| | | | | | Ignore-this: 458968154303ab865c304f387d6ac83b darcs-hash:20091101190312-1499c-a5e820382dbbbfca077f99f94e51b98ac3a2e760.gz
* Refer to modm as the current modMaskAdam Vogt2009-10-221-4/+4
| | | | | | | | Ignore-this: d097c7dc1746c55e1d4078a7148f9d5a This makes the config suggestions consistent with the current template. darcs-hash:20091022041126-1499c-5dd63076fdd71a61276cfc8e648bada81d9cc586.gz
* Clean keymask in GridSelect(solves issue 318)Daniel Schoepe2009-10-221-2/+4
| | | | | | Ignore-this: 2c315539bf1ae8c427b7856b5fdb2e49 darcs-hash:20091021223404-7f603-1e20667b6fbcc50ada28c9de6059b13914b7357d.gz
* More docs formatting in A.GridSelectAdam Vogt2009-10-161-2/+2
| | | | | | Ignore-this: a0a489c2b65fa2d755b4aca544c3d73a darcs-hash:20091016203132-1499c-00d2fe4ddf6c45555a054a947205c5182c40952d.gz
* In A.GridSelect correct haddocksAdam Vogt2009-10-161-20/+26
| | | | | | Ignore-this: f7f714c42544d9230eb9c9bec86cd36a darcs-hash:20091016171159-1499c-7b4594a01321d4b8cf861a0fe1024e901015e7ee.gz
* Rearrange the GSCONFIG class in A.GridselectAdam Vogt2009-10-051-28/+93
| | | | | | Ignore-this: 875080c8beabb81e19de44f7e60ca19d darcs-hash:20091005023227-1499c-76b8edd76add0171cc2216ac38d8937e03b05cec.gz
* Add a GSCONFIG class to overload defaultGSConfig.Adam Vogt2009-10-031-14/+30
| | | | | | | | | | | | | | | | Ignore-this: 220a13bf1ee145b18f28c66e32c79266 This uses -XOverlappingInstances to provide a fallback instance which uses the focusedBorderColor and normalBorderColor, but that part is optional. User's configs should use -XNoMonomorphismRestriction if they want to avoid writing a type signature for myGSConfig. Also, type variables become ambiguous in expressions like: > myGSConfig darcs-hash:20091003193804-1499c-ae124fc732c4bc956ace090b57681f2463441990.gz
* Add a screenshots section in the A.GridSelect haddocksAdam Vogt2009-10-041-4/+13
| | | | | | Ignore-this: be358c0173df3d02b45526c134604f4e darcs-hash:20091004160816-1499c-b4ab2eac8d068054c52ae83a84e2f551db40f340.gz
* Group functions in GridSelect haddock, add an inline screenshot.Adam Vogt2009-10-031-4/+14
| | | | | | Ignore-this: 3c6f1c5aff4fe197aa965cbda23e1be7 darcs-hash:20091003181927-1499c-47cad25da8ad20cafdf323d4871432d144b26c64.gz
* Extended GridSelectJan Vornberger2009-09-301-9/+24
| | | | | | | | | | Ignore-this: 2999d891387e4db9746061b1a42264a4 1) Added another convenience wrapper that allows to select an X() action from a given list. 2) Implemented the option to change the position of the selection diamond. (Re-recorded from Bluetile repo, rebased to current darcs) darcs-hash:20090930152741-594c5-5ae95ac1fb5ca2b22d245e9affb21832cc55b313.gz
* Replace nextEvent with maskEvent to prevent GridSelect from swallowing ↵Clemens Fruhwirth2009-08-091-1/+1
| | | | | | | | unrelated events (such as map/unmap) Ignore-this: 6c3bc2487e4f011e0febe0935c223f2 darcs-hash:20090809131055-ed0c4-983bd18467496e2736ef99904d8fdb5392855517.gz
* Revert to old behavior where unmatched keys do not exit the eventloop for ↵Adam Vogt2009-07-271-3/+2
| | | | | | | | A.GridSelect Ignore-this: 936cfd1e1b6243ced54e356f8067fac darcs-hash:20090727012302-1499c-4bd45b322d0d86cf6afd00e027a6a40f5647c777.gz
* Make direction keybindings configurable in A.GridSelectAdam Vogt2009-07-261-30/+54
| | | | | | Ignore-this: 9cd675485270ccebec22df72eea40578 darcs-hash:20090726020438-1499c-f1865b69c443ceaa38b54d4fcf5e0c2d9bfe609d.gz
* Remove trailing whitespace from many modulesAdam Vogt2009-07-051-5/+5
| | | | | | Ignore-this: 1e28ff0974578d329bd3d593c1a5125e darcs-hash:20090705201205-1499c-581bd0bb43ab6096eccded6edbd54a7a2007b0d9.gz
* Update haddock description for Actions.GridSelectDaniel Schoepe2009-04-221-2/+2
| | | | | | Ignore-this: db5a2c009f7e88647f168ccb225d6219 darcs-hash:20090422172510-cb1c6-69b4896adbdc1014e1f9b70fe0f15f65529ddd5a.gz
* Mouse support for GridSelectDaniel Schoepe2009-04-101-1/+13
| | | | | | | | Ignore-this: 38669e39c8676233d71f457c0b697500 GridSelect now allows selecting an element by a click with the left mouse button. darcs-hash:20090409223302-cb1c6-7b62d240e030889ce5e8814e081a1a1986e27cba.gz
* Generalize GridSelect to arbitrary elementsDaniel Schoepe2009-04-091-80/+99
| | | | | | | | Ignore-this: 69fbce85232871482adcce06c1a5fe62 This patch generalizes Actions.GridSelect to work for arbitrary (String,a)-lists. The changes break configurations that used `gridSelect' directly, which is now named gridSelectWindow. As an example for uses of the GridSelect-UI, I included a function to spawn an application from a list of commands(`spawnSelected'). darcs-hash:20090409155704-cb1c6-082fb77e1749c25eab2aeca3db7148b939b11a6d.gz
* Easier Colorizers for X.A.GridSelectquentin.moser2009-01-281-8/+54
| | | | | | Ignore-this: df3e0423824e40537ffdb4bc7363655d darcs-hash:20090128001702-5ccef-d2c340849172f1672f2c71ba9eb043f13924ebc4.gz
* Fix boolean operator precedence in GridSelect keybindingsAleksandar Dimitrov2008-12-011-4/+4
| | | | | | The vim-like hjkl keys were ORed to the key event AND arrow keys. darcs-hash:20081201120928-62c0c-d4e57aca38d45519691a73c1a2f41eb6269239d6.gz
* GridSelect.hs: navigate grid with h,j,k,l as well as arrow keyssean.escriva2008-11-221-4/+4
| | | | darcs-hash:20081122084725-29414-872e8669c51462d047d726504e4e34042884ce0b.gz
* GridSelect: Export default_colorizerDominik Bruhn2008-11-121-1/+2
| | | | darcs-hash:20081112140005-ae55e-ea4627b98e083a8a02d0d1828149bf20de14fa7e.gz
* Simplify code for restriction-calculation and remove compiletime warningsDominik Bruhn2008-11-121-2/+4
| | | | darcs-hash:20081112134630-ae55e-ef7a0d2837203d784d8298f1d65f49bdffc7400f.gz
* Simplify handle/eventLoop, introduce findInWindowMap, partial updates for ↵Clemens Fruhwirth2008-11-111-38/+62
| | | | | | | | | | | | | | | | key movements (less flickering) * handle/eventLoop carried the display and the drawing window as parameters. The display is available from the embedded X monad, the drawing windows was added. * updateWindows now takes a list of windows to update. updateAllWindows updates all windows. * only the windows that are modified by key movements are redrawn now. This means less flickering. darcs-hash:20081111100405-ed0c4-bd24b3e2c9ecbf8183582700d73bc61e64b503f5.gz
* GridSelect: force cursor stay in visible areaRoman Cheplyaka2008-11-111-3/+5
| | | | darcs-hash:20081111063348-3ebed-734bfca5f5207d2da0cfaf98e67d2fe959bfcb97.gz
* GridSelect: fix infiniteness problem with diamondRestrictRoman Cheplyaka2008-11-111-10/+2
| | | | darcs-hash:20081111055350-3ebed-ae3b880139b196938fbc532196dc13ec0c46cd1c.gz
* GridSelect: remove tabsRoman Cheplyaka2008-11-111-61/+61
| | | | darcs-hash:20081111053647-3ebed-5450725a6859c12fd9b1625228b5252664254df6.gz
* Exported shrinkWhile from Decoration to use in GridSelectRoman Cheplyaka2008-11-101-11/+0
| | | | darcs-hash:20081110191534-3ebed-aad022b55c2e295f1652358de879a40d9f970ac4.gz
* GridSelect: added link to a screenshotRoman Cheplyaka2008-11-101-0/+1
| | | | darcs-hash:20081110190617-3ebed-02592cba606005a3aa6614dd033eb56057092dd1.gz
* GridSelect: various improvementsRoman Cheplyaka2008-11-101-2/+47
| | | | | | | | | | | Added documentation Restricted export list for the sake of haddock Added functions: withSelectedWindow bringSelected (by Clemens Fruhwirth) goToSelected (by Dominik Bruhn) darcs-hash:20081110184644-3ebed-9468e8235f934582d03446afa7c9392c387d650d.gz
* Initial version of GridSelect.hs with a lot room for improvement/cleanupsClemens Fruhwirth2008-11-071-0/+246
darcs-hash:20081107115114-ed0c4-000ce76dd7160a7b5157a1bef463b213f8062705.gz