mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-17 21:33:46 -07:00
AppendFile: additional example of usage
This commit is contained in:
@@ -43,6 +43,15 @@ import Control.Exception.Extensible (bracket)
|
|||||||
--
|
--
|
||||||
-- > , ((modm .|. controlMask, xK_n), appendFilePrompt defaultXPConfig "/home/me/NOTES")
|
-- > , ((modm .|. controlMask, xK_n), appendFilePrompt defaultXPConfig "/home/me/NOTES")
|
||||||
--
|
--
|
||||||
|
-- Additional notes can be added via regular Haskell or XMonad functions; for
|
||||||
|
-- example, to preface notes with the time they were made, one could write a
|
||||||
|
-- binding like
|
||||||
|
--
|
||||||
|
-- > , ((modm .|. controlMask, xK_n), spawn ("date>>"++"/home/me/NOTES") >> appendFilePrompt
|
||||||
|
-- defaultXPConfig "/home/me/NOTES"
|
||||||
|
--
|
||||||
|
-- (And vice-versa to append the time instead.)
|
||||||
|
--
|
||||||
-- For detailed instructions on editing your key bindings, see
|
-- For detailed instructions on editing your key bindings, see
|
||||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user