feat: Add order extraction from filename and integrate into proposed name formatting

This commit is contained in:
sha
2025-12-26 20:42:52 +00:00
parent 2dce807984
commit b21308c7b8
6 changed files with 56 additions and 1 deletions
+10
View File
@@ -30,6 +30,7 @@ class RenamerApp(App):
("q", "quit", "Quit"),
("o", "open", "Open directory"),
("s", "scan", "Scan"),
("r", "refresh", "Refresh"),
]
def __init__(self, scan_dir):
@@ -148,6 +149,15 @@ class RenamerApp(App):
if self.scan_dir:
self.scan_files()
async def action_refresh(self):
tree = self.query_one("#file_tree", Tree)
node = tree.cursor_node
if node and node.data and isinstance(node.data, Path) and node.data.is_file():
self._start_loading_animation()
threading.Thread(
target=self._extract_and_show_details, args=(node.data,)
).start()
def on_key(self, event):
if event.key == "right":
tree = self.query_one("#file_tree", Tree)