From 04208951316738323e605c60e898e08a20ec272e Mon Sep 17 00:00:00 2001 From: Frossie Economou Date: Fri, 29 Dec 2023 15:38:13 -0700 Subject: [PATCH] Change file deletion icon to trashcan The red X was scary and implied failure --- changelog.d/20240102_155845_jsick_3.md | 3 +++ src/documenteer/services/technotemigration.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelog.d/20240102_155845_jsick_3.md diff --git a/changelog.d/20240102_155845_jsick_3.md b/changelog.d/20240102_155845_jsick_3.md new file mode 100644 index 00000000..5ae2ecf3 --- /dev/null +++ b/changelog.d/20240102_155845_jsick_3.md @@ -0,0 +1,3 @@ +### Bug fixes + +- In `documenteer technote migrate`, change the icon for a file deletion event from ❌ to 🗑️. diff --git a/src/documenteer/services/technotemigration.py b/src/documenteer/services/technotemigration.py index ab256bfc..30bc7153 100644 --- a/src/documenteer/services/technotemigration.py +++ b/src/documenteer/services/technotemigration.py @@ -254,10 +254,10 @@ def _delete_file(self, path: Path) -> None: """Delete a file.""" if path.exists(): path.unlink() - print(f"❌ {path}") + print(f"🗑️ {path}") def _delete_directory(self, path: Path) -> None: """Delete a directory.""" if path.exists(): shutil.rmtree(path) - print(f"❌ {path}") + print(f"🗑️ {path}")