{"id":136,"date":"2026-11-11T11:05:31","date_gmt":"2026-11-11T02:05:31","guid":{"rendered":"https:\/\/mrben.net\/?p=136"},"modified":"2026-11-18T16:52:13","modified_gmt":"2026-11-18T07:52:13","slug":"i-just-open-sourced-smartrename","status":"publish","type":"post","link":"https:\/\/mrben.net\/index.php\/2026\/11\/11\/i-just-open-sourced-smartrename\/","title":{"rendered":"I Just Open-Sourced SmartReName"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Twenty years ago, there was a small Chinese freeware tool called \u62d6\u628a\u66f4\u540d\u5668 (SmartRename). If you needed to rename a few hundred files, it was the tool everyone reached for: a pipeline of operations, a preview before anything happened, and the comforting feeling that nothing could go wrong. Then it stopped being updated. These days it still runs \u2014 right after showing you an error dialog you have to click away.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I missed it. So I rebuilt it from scratch, clean-room, in Rust. Today I&#8217;m open-sourcing it: <strong>SmartReName<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GitHub: <a href=\"https:\/\/github.com\/i-love-osaka\/SmartRename\">https:\/\/github.com\/i-love-osaka\/SmartRename<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1280\" src=\"https:\/\/mrben.net\/wp-content\/uploads\/2026\/11\/smartrename-desk.webp\" alt=\"\" class=\"wp-image-134\" srcset=\"https:\/\/mrben.net\/wp-content\/uploads\/2026\/11\/smartrename-desk.webp 1920w, https:\/\/mrben.net\/wp-content\/uploads\/2026\/11\/smartrename-desk-300x200.webp 300w, https:\/\/mrben.net\/wp-content\/uploads\/2026\/11\/smartrename-desk-1024x683.webp 1024w, https:\/\/mrben.net\/wp-content\/uploads\/2026\/11\/smartrename-desk-768x512.webp 768w, https:\/\/mrben.net\/wp-content\/uploads\/2026\/11\/smartrename-desk-1536x1024.webp 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What I kept, and what I dropped<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I kept the soul of the original: stack up operations \u2014 replace, numbering, add, delete \u2014 watch a <strong>live preview<\/strong> of every new name as you type, check for conflicts, then apply. And if anything goes wrong, <strong>undo<\/strong> puts every file back. Operation records can be saved as JSON and replayed later.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What I dropped is everything time made pointless: ID3 and RMVB tag editing, Explorer context menus, meta-variables, and the old proprietary record format. SmartReName does one thing: batch renaming.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The one feature I insisted on most: <strong>it starts with zero dialogs and zero errors.<\/strong> The original&#8217;s startup error was a small thing, but it was a daily paper cut. Not in this version.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What&#8217;s inside<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Replace<\/strong> with plain text or regular expressions \u2014 and because regex scares everyone (including me, some days), there is a built-in library of 15 practical examples under <em>Help \u2192 Regex Examples<\/em>, each explained, each with copy buttons; the four most common ones sit right in the Replace tab<\/li>\n\n\n\n<li><strong>Numbering, add, delete<\/strong> by range or by substring<\/li>\n\n\n\n<li><strong>One-click cleanup<\/strong> of the junk that downloads bring along: (1), &#8211; \u526f\u672c\uff0c [site.com], full-width characters<\/li>\n\n\n\n<li><strong>Naming styles<\/strong> \u2014 camelCase, PascalCase, snake_case, kebab-case \u2014 and Traditional \u21c4 Simplified Chinese conversion<\/li>\n\n\n\n<li><strong>Rename by date<\/strong> (EXIF, modified, or created), rename from the parent folder, and nine preset script commands like Chinese \u2192 pinyin<\/li>\n\n\n\n<li>Conflict detection with optional auto-numbering, per-file failure reasons that stay on screen, timestamps preserved if you want them<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Under the hood it is two Rust crates: a platform-independent renaming engine with unit tests, and a native-feeling macOS UI (system menu bar, follows light\/dark mode) built with egui \u2014 the same stack as <a href=\"https:\/\/github.com\/i-love-osaka\/PureMap\">PureMap<\/a>. Execution is two-phase through temporary names, so a run never leaves your files half-renamed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Status<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">macOS first (Apple Silicon); the engine is cross-platform and Windows is planned. The interface is currently in Chinese, like the original \u2014 English localization is very welcome. It is ad-hoc signed, so on first launch use right-click \u2192 Open.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Good tools deserve to outlive their maintainers. The original renamer served a generation of Windows users; if this version serves a few people on modern machines, it was worth the rewrite.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u2014 Ben<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Twenty years ago, there was a small Chinese freeware to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":184,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[46,47,25,45,48],"class_list":["post-136","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding","tag-file-renamer","tag-macos","tag-open-source","tag-rust","tag-utilities"],"_links":{"self":[{"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":1,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":137,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/posts\/136\/revisions\/137"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/media\/184"}],"wp:attachment":[{"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mrben.net\/index.php\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}