diff options
author | Andrea Rossato <andrea.rossato@unibz.it> | 2008-02-16 14:34:54 +0100 |
---|---|---|
committer | Andrea Rossato <andrea.rossato@unibz.it> | 2008-02-16 14:34:54 +0100 |
commit | 0cf2ff67e2c11ed6ffcba558dfec3a906f170266 (patch) | |
tree | 5c2e51c777bd66da9676e14b9815832c9b857beb /XMonad/Actions/TagWindows.hs | |
parent | 9bebda0dc13ee465b9f5ee86fdc6ddc8132598ec (diff) | |
download | XMonadContrib-0cf2ff67e2c11ed6ffcba558dfec3a906f170266.tar.gz XMonadContrib-0cf2ff67e2c11ed6ffcba558dfec3a906f170266.tar.xz XMonadContrib-0cf2ff67e2c11ed6ffcba558dfec3a906f170266.zip |
Prompt: add some methods to make completions more flexible
- now it is possible to decide if the prompt will complete the last
word of the command line or the whole line (default is the last
word);
- completing the last word can be fine tuned by implementing
'commandToComplete' and 'completionToCommand': see comments for
details;
- move mkComplFunFromList' from TagWindows to Prompt.
darcs-hash:20080216133454-32816-86eba16c4c73357b5bf6fee185c652d5ecd75521.gz
Diffstat (limited to 'XMonad/Actions/TagWindows.hs')
-rw-r--r-- | XMonad/Actions/TagWindows.hs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/XMonad/Actions/TagWindows.hs b/XMonad/Actions/TagWindows.hs index 42c3613..4501e7d 100644 --- a/XMonad/Actions/TagWindows.hs +++ b/XMonad/Actions/TagWindows.hs @@ -193,9 +193,3 @@ tagDelPrompt c = do tagDelComplList :: X [String] tagDelComplList = gets windowset >>= maybe (return []) getTags . peek - - -mkComplFunFromList' :: [String] -> String -> IO [String] -mkComplFunFromList' l [] = return l -mkComplFunFromList' l s = - return $ filter (\x -> take (length s) x == s) l |