feat: Bump version to 0.3.1, update filename extraction logic, and enhance rename confirmation screen

This commit is contained in:
sha
2025-12-28 07:14:39 +00:00
parent 229478ce64
commit fe4c0a4a58
8 changed files with 86 additions and 21 deletions
+3
View File
@@ -185,8 +185,11 @@ class RenamerApp(App):
extractor = MediaExtractor(node.data)
proposed_formatter = ProposedNameFormatter(extractor)
new_name = str(proposed_formatter)
logging.info(f"Proposed new name: {new_name!r} for file: {node.data}")
if new_name and new_name != node.data.name:
self.push_screen(RenameConfirmScreen(node.data, new_name))
else:
self.notify("Proposed name is the same as current name; no rename needed.", severity="information", timeout=3)
async def action_expand(self):
tree = self.query_one("#file_tree", Tree)