Here’s an updated, integrated super-detailed prompt that includes your new “cleaning…
- User
Here’s an updated, integrated super-detailed prompt that includes your new “cleaning name” keyword-removal feature.
Full redesign prompt (with cleaning option)
Design a single-page web application called “Bulk Video Renamer V2.0”, built as a modern, responsive SPA, that runs entirely in the browser and offers a multi-stage pipeline for renaming large collections of video files with SEO-optimised, aesthetic titles. rqm-csvren.netlify The tool targets editors and content creators who manage hundreds of short-form edits (TikTok / YouTube Shorts / Reels) exported as numeric
.mp4files or similar, and transforms them into human-readable filenames that include song titles, creator names, emojis, and domain-specific keywords, while remaining undo-safe and cross-platform (Windows / macOS / Linux). rqm-csvren.netlifyCore workflow stages
-
Ingest & Scan
- Provide an ingest panel where the user selects a local directory (Sandbox Demo / Local Disk) and the app scans for video files. rqm-csvren.netlify
- Include a checkbox for “Recursive Walk Subfolders” to control whether nested folders are traversed. rqm-csvren.netlify
- Add an “Extensions Filter” input with default
mp4, mov, webm, avi, mkv, allowing the user to customise which file types are recognised. rqm-csvren.netlify
-
SEO Rules & Templates
- Create a section “SEO DESIGN PRESETS” with buttons for presets like: “YouTube SEO Auto”, “Sporty Edit Special”, “Compact ID Prefix”, “Raw Description Cleaned”. Selecting a preset switches the naming logic and token usage. rqm-csvren.netlify
- Add a “SEO TITLE CUSTOM TEMPLATE” block containing:
- A checkbox “Enable”.
- A template input field (e.g.,
{desc_raw},{index} - {person} [{creator}]) and a clickable tag palette for{id},{desc},{desc_raw},{creator},{song},{person},{views},{date},{index}(“Click tag to inject”). rqm-csvren.netlify
- Implement a simple templating engine where these tokens are replaced with per-file metadata to generate the SEO-optimised target name. rqm-csvren.netlify
-
Advanced Rules & Settings
- Add a slider “MAX SEO TITLE LENGTH” with range 30–120 characters that truncates or adjusts generated names to avoid overly long filenames. rqm-csvren.netlify
- Provide an “OS FILE CONSTRAINTS” dropdown: Windows, macOS, Linux, Auto-Detect, which enforces filesystem-safe characters and length rules. rqm-csvren.netlify
- Include “Fuzzy Match Fallback” (checkbox) plus a “Fuzzy Threshold” slider (approx. 0.60–0.95) controlling how aggressively fuzzy matching is used when exact metadata is missing. rqm-csvren.netlify
- Offer domain-specific options like “Inject Sports Context Words” and “Reset Default Sport Mappings” for sports/highlight-style edits. rqm-csvren.netlify
-
Preview & Diff
- Show a large table with columns: ORIGINAL FILE NAME, SEO OPTIMIZED TARGET NAME, MATCH STRATEGY, DIFF VISUALISER. rqm-csvren.netlify
- ORIGINAL FILE NAME column lists discovered files (often numeric IDs such as
7475726644401982727.mp4). rqm-csvren.netlify - SEO OPTIMIZED TARGET NAME column displays editable text inputs with pre-generated titles, e.g. “Shape of You✨ created by ᴄʜᴀɴ.mp4”, “Love The Way You Lie... created by ᴄʜᴀɴ.mp4”, supporting emojis and multilingual text. rqm-csvren.netlify
- MATCH STRATEGY indicates states like EXACT, CONFLICT, UNMATCHED, FUZZY WARN, helping the user understand how each file was mapped. rqm-csvren.netlify
- DIFF VISUALISER shows a side-by-side transformation:
old_name.mp4 → new_name.mp4as plain text for rapid verification. rqm-csvren.netlify
-
Execute & Log
- Display batch-level metrics: TOTAL FILES, MATCHED, FUZZY WARN, ALREADY RENAMED, UNMATCHED, CONFLICTS. rqm-csvren.netlify
- Provide a button “Download Dry-Run Scripts” that exports a script describing all planned renames without applying them, supporting undo-safe workflows. rqm-csvren.netlify
- Offer “Execute Rename Batch” to run the actual rename logic, with logging of success, skip, and error events for each file. rqm-csvren.netlify
-
Search & Filtering
- Include a search input “Search files by old/new name...” to filter rows based on either original or target filenames. rqm-csvren.netlify
- Ensure the search is fast enough to work on large datasets (500+ files) and supports partial text, emojis, and multilingual characters. rqm-csvren.netlify
New feature: Cleaning Name – keyword-based removal
Add a dedicated “Cleaning Name / Keyword Stripper” module integrated into the SEO rules, focusing exactly on your idea:
- Place a block under SEO Rules (or Advanced Settings) titled “Cleaning Name – Remove Keywords”.
- Components of this block:
- A multi-line or token-input field labeled “Keywords to remove” where the user can enter one or more keywords/phrases (e.g.,
created by ᴄʜᴀɴ,this song,fav song,Spanish song,with 's, emojis like😩,🥵, platform tags, etc.). rqm-csvren.netlify - A mode selector:
- “Exact match” – remove the exact substring from the generated target name.
- “Case-insensitive” – treat keywords regardless of case (e.g.,
This songvsthis song). - Optional “Regex / advanced pattern” for power users to define custom cleaning rules.
- A checkbox “Apply cleaning to:” with options:
- Target SEO Title only.
- Original filenames before matching.
- Both original and target (advanced).
- A toggle “Trim extra spaces and punctuation after cleaning” that auto-normalises the filename after removal (no double spaces, leading/trailing spaces, stray dots or hyphens).
- A multi-line or token-input field labeled “Keywords to remove” where the user can enter one or more keywords/phrases (e.g.,
Cleaning behaviour details:
- After the SEO template engine generates the target name, run the cleaning stage:
- For each keyword in the list, find occurrences in the target name and remove them.
- If a keyword appears multiple times, remove all occurrences.
- Support emojis and non-Latin scripts (e.g., Arabic, Thai, Cyrillic) as cleanable tokens, since filenames in the dataset already contain them. rqm-csvren.netlify
- Examples:
- “This song😩 created by ᴄʜᴀɴ.mp4” → removing
This song😩andcreated by ᴄʜᴀɴleaves a cleaner name like just the song or a reduced variant, depending on template. - “Spanish song😩 created by ᴄʜᴀɴ. ☆rjemz.mp4” → removing generic labels (
Spanish song😩) while preserving artist / special tags.
- “This song😩 created by ᴄʜᴀɴ.mp4” → removing
- After cleaning, run a normalisation step:
- Collapse multiple spaces to a single space.
- Remove dangling punctuation before
.mp4(e.g., trailing dots, hyphens). - Ensure the cleaned filename still respects MAX SEO TITLE LENGTH and OS FILE CONSTRAINTS.
UI integration for cleaning:
- Add a small preview indicator or badge in the table showing when cleaning was applied to a row (e.g., “CLEANED” next to MATCH STRATEGY).
- In the DIFF VISUALISER, highlight removed segments (optional, e.g., strikethrough or greyed-out) so users can visually confirm which parts were stripped.
- Provide a one-click “Apply Cleaning to All” and a per-row toggle “Skip Cleaning for this file” so the user retains control.
Localisation and platform-aware presets
- Keep the language selector at the top (English, Español, Français, Deutsch, 日本語, 한국어) to localise the UI while preserving functional behaviour. rqm-csvren.netlify
- Extend presets to be platform-aware: “YouTube Shorts”, “TikTok”, “Instagram Reels”, each pre-configuring template, title length, and recommended keywords/phrases to either include or later clean.
Data and automation outputs
- Add export options:
- CSV of
original_name, cleaned_target_name, match_strategy, cleaning_appliedfor external Python/bash scripts. - Optional JSON config describing presets, cleaning keywords, fuzzy rules, and OS constraints for future re-use.
- CSV of
User persona and UX goals
- Target power users (like advanced students/coders) who are comfortable with templates, batch operations, and want fine-grained control over naming logic.
- Make all advanced features (fuzzy match, keyword cleaning, regex, OS constraints) clearly visible but not overwhelming, using collapsible sections (e.g., “Advanced Cleaning & Constraints”).
- Focus strongly on undo-safety: dry runs, logs, conflict flags, and visual diff before rename; make it easy to revert or skip files with unexpected cleaning.
You can copy-paste this whole block as a design / generation prompt and then extend the “Cleaning Name” section further with your exact keyword patterns or regex recipes as you refine your own version.
-
Assistant
我会为你创建这个功能完整的"Bulk Video Renamer V2.0"单页应用,包含所有SEO优化、模板系统、关键词清理和批量重命名功能。
现在让我把应用转化为 React + Tailwind CSS 的形式,检查项目结构。
让我删除之前创建的 HTML 文件,并创建 React + Tailwind 版本。
让我重新创建 Vite 所需的 index.html 入口文件,然后创建 React 组件。
现在让我创建类型定义和核心引擎逻辑。
现在创建所有的面板组件。
让我修复 TypeScript 错误。
现在创建主 App.tsx 来整合所有组件和管理状态。
现在创建 CSS 样式文件。
让我构建项目检查是否有错误。
项目构建成功!让我快速检查一下 App.tsx 中的代码顺序是否正确,因为
manualOverrides被声明在updateRow之后。让我修复 hooks 声明顺序以提高代码可读性。
构建成功!我已经为你完整实现了 Bulk Video Renamer V2.0 这个单页 Web 应用,包含了所有要求的功能。
实现概要
文件结构
src/types.ts— 类型定义、预设(7种平台预设:YouTube、TikTok、Instagram Reels、Shorts等)、标签常量src/utils/engine.ts— 模板引擎、清理引擎、模糊匹配(Levenshtein)、OS约束、导出工具src/components.tsx— 6个主要面板组件src/App.tsx— 主应用 + 状态管理src/index.css— 深色主题样式 + Tailwind CSS
已实现的核心功能
- Ingest & Scan — 使用 File System Access API 选择本地目录、递归扫描、扩展名过滤,也提供 Demo 文件加载功能方便测试
- SEO 模板系统 — 7种预设(YouTube/Sporty/Compact/Clean/TikTok/Reels/Shorts)+ 可点击注入的标签调色板(
{id},{song},{creator}等) - 高级设置 — 30-120字符长度滑块、Windows/macOS/Linux/Auto OS约束、模糊匹配阈值滑块、运动上下文注入
- 🌟 Cleaning Name 模块(核心新功能):
- 批量添加/单行添加/快速预设关键词
- 3种匹配模式:精确匹配 / 大小写不敏感 / Regex
- 应用目标选择:目标文件名 / 原始文件名 / 两者
- 自动修剪多余空格和悬空标点
- 实时预览显示清理前后的对比
- 支持表情符号和非拉丁文字(CJK、阿拉伯、泰文等)
- 每行可单独跳过清理
- 预览与差异 — 大型表格显示原始名、SEO目标名、匹配策略(EXACT/FUZZY/UNMATCHED/CONFLICT/ALREADY_RENAMED)、CLEANED 徽章、差异可视化、全文搜索过滤
- 执行与日志 — 7个指标卡、Dry-Run 脚本下载(Bash)、执行重命名、CSV 导出、JSON 配置导出、彩色日志
- 6种语言选择器 和平台感知预设
应用采用现代深色渐变主题(靛蓝/紫色),使用 glassmorphism 卡片、流畅的动画和完整的响应式布局。
Files built:
index.html,src/types.ts,src/utils/engine.ts,src/components.tsx,src/App.tsx,src/index.css
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.