X.U.NamedScratchpad: Fix docs regarding dynamic NSPs

The documentation and usage example still had the old names.

Related: https://github.com/xmonad/xmonad-contrib/issues/699
This commit is contained in:
slotThe 2022-04-05 16:11:58 +02:00
parent 737f8040cb
commit 78dce3d85b

View File

@ -282,7 +282,7 @@ shiftToNSP ws f = do
-- the associated window has been closed. -- the associated window has been closed.
-- --
-- * If you already have an active dynamic scratchpad @"dyn1"@ and you -- * If you already have an active dynamic scratchpad @"dyn1"@ and you
-- call 'makeDynamicSP' with another window, that window will -- call 'toggleDynamicNSP' with another window, that window will
-- henceforth occupy the @"dyn1"@ scratchpad. If you still need the -- henceforth occupy the @"dyn1"@ scratchpad. If you still need the
-- old window, you might have to travel to your scratchpad workspace -- old window, you might have to travel to your scratchpad workspace
-- ('scratchpadWorkspaceTag') in order to retrieve it. -- ('scratchpadWorkspaceTag') in order to retrieve it.
@ -292,10 +292,10 @@ shiftToNSP ws f = do
-- --
-- > import XMonad.Util.NamedScratchpads -- > import XMonad.Util.NamedScratchpads
-- > -- >
-- > , ("M-s-a", withFocused $ makeDynamicSP "dyn1") -- > , ("M-s-a", withFocused $ toggleDynamicNSP "dyn1")
-- > , ("M-s-b", withFocused $ makeDynamicSP "dyn2") -- > , ("M-s-b", withFocused $ toggleDynamicNSP "dyn2")
-- > , ("M-a" , spawnDynamicSP "dyn1") -- > , ("M-a" , dynamicNSPAction "dyn1")
-- > , ("M-b" , spawnDynamicSP "dyn2") -- > , ("M-b" , dynamicNSPAction "dyn2")
-- --
-- | A 'NamedScratchpad' representing a "dynamic" scratchpad; i.e., a -- | A 'NamedScratchpad' representing a "dynamic" scratchpad; i.e., a