mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Prompt: comment only (clafiry completionToCommand uses)
This commit is contained in:
parent
11d3eff158
commit
6a026cf692
@ -140,11 +140,13 @@ class XPrompt t where
|
|||||||
commandToComplete :: t -> String -> String
|
commandToComplete :: t -> String -> String
|
||||||
commandToComplete _ c = getLastWord c
|
commandToComplete _ c = getLastWord c
|
||||||
|
|
||||||
-- | If the prompt is using 'getNextOfLastWord' for implementing
|
-- | This method is used to process each completion in order to
|
||||||
-- 'nextCompletion' (the default implementation), this method is
|
-- generate the string that will be compared with the command
|
||||||
-- used to process each completion in order to generate the string
|
-- presently displayed in the command line. If the prompt is using
|
||||||
-- that will be compared with the command presently displayed in
|
-- 'getNextOfLastWord' for implementing 'nextCompletion' (the
|
||||||
-- the command line.
|
-- default implementation), this method is also used to generate,
|
||||||
|
-- from the returned completion, the string that will form the
|
||||||
|
-- next command line when tab is pressed.
|
||||||
completionToCommand :: t -> String -> String
|
completionToCommand :: t -> String -> String
|
||||||
completionToCommand _ c = c
|
completionToCommand _ c = c
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user