This commit is contained in:
rnhmjoj 2015-07-07 21:00:04 +02:00
parent 20ef16e3f2
commit b45c3ad8f1

View File

@ -24,9 +24,7 @@ names =
, (Left "srvr", "url" )
, (Left "cdat", "created" )
, (Left "mdat", "last change")
, (Left "desc", "description")
]
, (Left "desc", "description") ]
instance Pretty Keychain where
pretty = intercalate spacer . map pretty
@ -38,8 +36,7 @@ instance Pretty Item where
, "content: " ++ password
, "keychain: " ++ takeBaseName keychain
, "class: " ++ show itemClass
, "info: "
] ++ map pretty entries
, "info: " ] ++ map pretty entries
where
title = maybe (Str "") id (lookup (Right 7) attrs)
entries = filter ((`elem` keys) . fst) attrs