feat: Bump version to 0.2.8, escape filenames in rename confirmation screen
This commit is contained in:
BIN
dist/renamer-0.2.8-py3-none-any.whl
vendored
Normal file
BIN
dist/renamer-0.2.8-py3-none-any.whl
vendored
Normal file
Binary file not shown.
@@ -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"
|
||||||
|
|||||||
@@ -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!")}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user