mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-06 15:01:53 -07:00
Prompt.XMonad: use mkComplFunFromList' to get all the completions with an empty command line
This commit is contained in:
@@ -44,8 +44,8 @@ instance XPrompt XMonad where
|
|||||||
xmonadPrompt :: XPConfig -> X ()
|
xmonadPrompt :: XPConfig -> X ()
|
||||||
xmonadPrompt c = do
|
xmonadPrompt c = do
|
||||||
cmds <- defaultCommands
|
cmds <- defaultCommands
|
||||||
mkXPrompt XMonad c (mkComplFunFromList (map fst cmds)) runCommand'
|
mkXPrompt XMonad c (mkComplFunFromList' (map fst cmds)) runCommand'
|
||||||
|
|
||||||
-- | An xmonad prompt with a custom command list
|
-- | An xmonad prompt with a custom command list
|
||||||
xmonadPromptC :: [(String, X ())] -> XPConfig -> X ()
|
xmonadPromptC :: [(String, X ())] -> XPConfig -> X ()
|
||||||
xmonadPromptC commands c = mkXPrompt XMonad c (mkComplFunFromList (map fst commands)) runCommand'
|
xmonadPromptC commands c = mkXPrompt XMonad c (mkComplFunFromList' (map fst commands)) runCommand'
|
||||||
|
Reference in New Issue
Block a user