feat: Bump version to 0.2.8, escape filenames in rename confirmation screen

This commit is contained in:
sHa
2025-12-27 03:36:08 +00:00
parent e9153d2225
commit a2d5fa8dde
4 changed files with 5 additions and 4 deletions

BIN
dist/renamer-0.2.8-py3-none-any.whl vendored Normal file

Binary file not shown.

View File

@@ -1,6 +1,6 @@
[project] [project]
name = "renamer" name = "renamer"
version = "0.2.7" version = "0.2.8"
description = "Terminal-based media file renamer and metadata viewer" description = "Terminal-based media file renamer and metadata viewer"
readme = "README.md" readme = "README.md"
requires-python = ">=3.11" requires-python = ">=3.11"

View File

@@ -1,6 +1,7 @@
from textual.screen import Screen from textual.screen import Screen
from textual.widgets import Input, Button, Static from textual.widgets import Input, Button, Static
from textual.containers import Vertical, Horizontal, Center, Container from textual.containers import Vertical, Horizontal, Center, Container
from rich.markup import escape
from pathlib import Path from pathlib import Path
@@ -122,8 +123,8 @@ class RenameConfirmScreen(Screen):
confirm_text = f""" confirm_text = f"""
{TextFormatter.bold(TextFormatter.red("RENAME CONFIRMATION"))} {TextFormatter.bold(TextFormatter.red("RENAME CONFIRMATION"))}
Current name: {TextFormatter.cyan(self.old_path.name)} Current name: {TextFormatter.cyan(escape(self.old_path.name))}
New name: {TextFormatter.green(self.new_name)} New name: {TextFormatter.green(escape(self.new_name))}
{TextFormatter.yellow("This action cannot be undone!")} {TextFormatter.yellow("This action cannot be undone!")}

2
uv.lock generated
View File

@@ -164,7 +164,7 @@ wheels = [
[[package]] [[package]]
name = "renamer" name = "renamer"
version = "0.2.7" version = "0.2.8"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "langcodes" }, { name = "langcodes" },