From 71cb79aa4019e629005e342bb5faad780db3487e Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Tue, 8 Jul 2025 03:49:01 -0300 Subject: [PATCH 1/3] Updated `CHANGELOG.md` with release notes for versions 0.0.2 and 0.0.3. --- CHANGELOG.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9b8971..809bfe6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Export features - Testing implementation +## [0.0.3] - 2025-07-07 + +### Changed +- Removed the dependency on textual-dev from pyproject.toml + +## [0.0.2] - 2025-07-07 + +### Changed +- Changed the license in pyproject.toml to BSD + ## [0.0.1] - 2025-07-06 ### Added @@ -34,7 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Installation Method 1 not yet implemented - No testing suite implemented yet -- Some features may be unstable in alpha version +- Some features may be unstable in an alpha version [Unreleased]: https://github.com/username/pilgrim/compare/v0.0.1...HEAD From 60311bc71411b7053dd502fda999939cf76f1948 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Miranda Date: Tue, 8 Jul 2025 18:59:33 -0300 Subject: [PATCH 2/3] Update README.md changed the pip install to point to testpypi instead of the pypi and also added a way to get the dependencies from pypi --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0f10b3a..0c47fef 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ structured and accessible format. To install the application you must issue the command: ```bash -pip install pilgrim + pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple Pilgrim ``` ## Usage From 63db2517f3da8986a735ccb6e90255dd6ba49843 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Fri, 11 Jul 2025 17:46:00 -0300 Subject: [PATCH 3/3] Corrected the behavior to create a new entry upon opening a diary --- src/pilgrim/ui/screens/edit_entry_screen.py | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/pilgrim/ui/screens/edit_entry_screen.py b/src/pilgrim/ui/screens/edit_entry_screen.py index 24e05ef..8f695df 100644 --- a/src/pilgrim/ui/screens/edit_entry_screen.py +++ b/src/pilgrim/ui/screens/edit_entry_screen.py @@ -33,17 +33,24 @@ class EditEntryScreen(Screen): Binding("escape", "back_to_list", "Back to List"), ] - def __init__(self, diary_id: int = 1): + def __init__(self, diary_id: int = 1,create_new: bool = True): super().__init__() + + if create_new: + self.current_entry_index = -1 + self.is_new_entry = True + self.next_entry_id = None + + else: + self.is_new_entry = False + self.current_entry_index = 0 + self.next_entry_id = 1 + self.new_entry_title = "" + self.new_entry_content = "" self.diary_id = diary_id self.diary_name = f"Diary {diary_id}" - self.current_entry_index = 0 self.entries: List[Entry] = [] - self.is_new_entry = False self.has_unsaved_changes = False - self.new_entry_content = "" - self.new_entry_title = "New Entry" - self.next_entry_id = 1 self._updating_display = False self._original_content = "" self.is_refreshing = False