From 56bf544ef5a882ca8d132e87e892df9c2686295e Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 16 Dec 2018 19:17:29 +0100 Subject: By default, print the short uid before an entry when searching. --- lesana/command.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lesana/command.py b/lesana/command.py index 2df70c1..7f70597 100644 --- a/lesana/command.py +++ b/lesana/command.py @@ -230,7 +230,10 @@ class Search(guacamole.Command): print(template.render(entries=results)) else: for entry in results: - print(entry) + print("{suid}: {entry}".format( + suid=entry.uid[:8], + entry=entry, + )) class Init(guacamole.Command): -- cgit v1.2.3