Show notes when viewing password entries

This commit is contained in:
thePR0M3TH3AN
2025-07-31 10:27:17 -04:00
parent 8a5d1717f8
commit 0a078bbcf4
2 changed files with 60 additions and 0 deletions

View File

@@ -2767,6 +2767,8 @@ class PasswordManager:
"cyan",
)
)
if notes:
print(colored(f"Notes: {notes}", "cyan"))
tags = entry.get("tags", [])
if tags:
print(colored(f"Tags: {', '.join(tags)}", "cyan"))
@@ -3387,9 +3389,15 @@ class PasswordManager:
username = entry.get("username", "")
url = entry.get("url", "")
blacklisted = entry.get("archived", entry.get("blacklisted", False))
notes = entry.get("notes", "")
tags = entry.get("tags", [])
print(color_text(f" Label: {website}", "index"))
print(color_text(f" Username: {username or 'N/A'}", "index"))
print(color_text(f" URL: {url or 'N/A'}", "index"))
if notes:
print(color_text(f" Notes: {notes}", "index"))
if tags:
print(color_text(f" Tags: {', '.join(tags)}", "index"))
print(
color_text(
f" Archived: {'Yes' if blacklisted else 'No'}",