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

View File

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