diff options
author | nrujac <nrujac@gmail.com> | 2014-12-19 01:23:09 +0100 |
---|---|---|
committer | nrujac <nrujac@gmail.com> | 2014-12-19 01:23:09 +0100 |
commit | 2bc0e028c777ad78cde9ba96ffc19dac92fdebce (patch) | |
tree | c52856c83b921483cf1bd68d30f00fdf48968763 /XMonad/Util/NamedScratchpad.hs | |
parent | 1b3eaa512ecac14f606d72c10d62667da4c575fd (diff) | |
download | XMonadContrib-2bc0e028c777ad78cde9ba96ffc19dac92fdebce.tar.gz XMonadContrib-2bc0e028c777ad78cde9ba96ffc19dac92fdebce.tar.xz XMonadContrib-2bc0e028c777ad78cde9ba96ffc19dac92fdebce.zip |
Generalize new workspace addition functions to support arbitrary insertion.
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
Diffstat (limited to 'XMonad/Util/NamedScratchpad.hs')
0 files changed, 0 insertions, 0 deletions