From 1a4c95fac8a4bce686caacbfc82807b737d6653b Mon Sep 17 00:00:00 2001 From: Matt Zrinsky Date: Thu, 1 Jul 2021 09:29:27 -0500 Subject: [PATCH] Add help command to help message. Attempt to contribute to xmonad, and add a simple line to the help message, containing the help command itself. Fixes xmonad/xmonad#287 --- CHANGES.md | 2 ++ man/xmonad.hs | 1 + src/XMonad/Config.hs | 1 + 3 files changed, 4 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 4c6346a..6e86e85 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -48,6 +48,8 @@ providing the ability to directly jump to a layout with the `JumpToLayout` message. + * Document the help command in the help message. + ## 0.15 (September 30, 2018) * Reimplement `sendMessage` to deal properly with windowset changes made diff --git a/man/xmonad.hs b/man/xmonad.hs index 4f5fbeb..57c8b46 100644 --- a/man/xmonad.hs +++ b/man/xmonad.hs @@ -293,6 +293,7 @@ help = unlines ["The default modifier key is 'alt'. Default keybindings:", "mod-Space Rotate through the available layout algorithms", "mod-Shift-Space Reset the layouts on the current workSpace to default", "mod-n Resize/refresh viewed windows to the correct size", + "mod-Shift-/ Show this help message with the default keybindings", "", "-- move focus up or down the window stack", "mod-Tab Move focus to the next window", diff --git a/src/XMonad/Config.hs b/src/XMonad/Config.hs index c377ff1..f35fc50 100644 --- a/src/XMonad/Config.hs +++ b/src/XMonad/Config.hs @@ -297,6 +297,7 @@ help = unlines ["The default modifier key is 'alt'. Default keybindings:", "mod-Space Rotate through the available layout algorithms", "mod-Shift-Space Reset the layouts on the current workSpace to default", "mod-n Resize/refresh viewed windows to the correct size", + "mod-Shift-/ Show this help message with the default keybindings", "", "-- move focus up or down the window stack", "mod-Tab Move focus to the next window",