From dcd095d1af7c694055191e487f45f7b5785cbacb Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sat, 2 Aug 2025 16:26:52 -0400 Subject: [PATCH] Include entry type in search results --- README.md | 2 ++ .../01-getting-started/01-advanced_cli.md | 2 +- docs/docs/content/index.md | 2 ++ src/main.py | 27 +++++++++---------- src/seedpass/api.py | 3 ++- src/seedpass/cli.py | 8 +++--- src/seedpass/core/api.py | 3 ++- src/seedpass/core/entry_management.py | 23 +++++++++++----- src/seedpass/core/manager.py | 5 ++-- src/seedpass_gui/app.py | 2 +- src/tests/test_api.py | 5 +++- src/tests/test_archive_nonpassword.py | 13 ++++++--- src/tests/test_archive_restore.py | 9 ++++--- src/tests/test_cli_core_services.py | 3 ++- src/tests/test_cli_doc_examples.py | 4 ++- src/tests/test_cli_subcommands.py | 20 +++++++++----- src/tests/test_core_services.py | 5 ++-- src/tests/test_manager_search_display.py | 2 +- src/tests/test_search_entries.py | 14 +++++----- src/tests/test_tag_persistence.py | 9 ++++--- src/tests/test_typer_cli.py | 8 +++--- 21 files changed, 106 insertions(+), 63 deletions(-) diff --git a/README.md b/README.md index e72ed9b..4497051 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ SeedPass now uses the `portalocker` library for cross-platform file locking. No - **Quick Unlock:** Optionally skip the password prompt after verifying once. - **Secret Mode:** When enabled, newly generated and retrieved passwords are copied to your clipboard and automatically cleared after a delay. - **Tagging Support:** Organize entries with optional tags and find them quickly via search. +- **Typed Search Results:** Results now display each entry's type for quicker identification. - **Manual Vault Export/Import:** Create encrypted backups or restore them using the CLI or API. - **Parent Seed Backup:** Securely save an encrypted copy of the master seed. - **Manual Vault Locking:** Instantly clear keys from memory when needed. @@ -235,6 +236,7 @@ seedpass import --file "~/seedpass_backup.json" seedpass search "github" seedpass search --tags "work,personal" seedpass get "github" +# Search results show the entry type, e.g. "1: Password - GitHub" # Retrieve a TOTP entry seedpass entry get "email" # The code is printed and copied to your clipboard diff --git a/docs/docs/content/01-getting-started/01-advanced_cli.md b/docs/docs/content/01-getting-started/01-advanced_cli.md index c9686e9..13336a3 100644 --- a/docs/docs/content/01-getting-started/01-advanced_cli.md +++ b/docs/docs/content/01-getting-started/01-advanced_cli.md @@ -136,7 +136,7 @@ Run or stop the local HTTP API. ### `entry` Commands - **`seedpass entry list`** – List entries in the vault, optionally sorted or filtered. -- **`seedpass entry search `** – Search across labels, usernames, URLs and notes. +- **`seedpass entry search `** – Search across labels, usernames, URLs and notes. Results show the entry type before each label. - **`seedpass entry get `** – Retrieve the password or TOTP code for one matching entry, depending on the entry's type. - **`seedpass entry add