{"id":26883724,"url":"https://github.com/jiro4989/rena","last_synced_at":"2025-05-08T17:01:51.214Z","repository":{"id":80274153,"uuid":"250244616","full_name":"jiro4989/rena","owner":"jiro4989","description":"rena is a tiny fire/directory renaming command.","archived":false,"fork":false,"pushed_at":"2021-03-06T00:54:43.000Z","size":324,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T17:50:48.243Z","etag":null,"topics":["cli","command","nim","rename"],"latest_commit_sha":null,"homepage":"","language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jiro4989.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-26T11:50:59.000Z","updated_at":"2023-02-20T18:11:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad947dba-a6aa-487c-9b8d-7a3831cd0b32","html_url":"https://github.com/jiro4989/rena","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Frena","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Frena/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Frena/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Frena/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiro4989","download_url":"https://codeload.github.com/jiro4989/rena/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253112071,"owners_count":21856070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command","nim","rename"],"created_at":"2025-03-31T17:36:54.443Z","updated_at":"2025-05-08T17:01:51.200Z","avatar_url":"https://github.com/jiro4989.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"====\nrena\n====\n\n|gh-actions| |nimble-version| |nimble-install|\n\nrena is a tiny file/directory renaming command.\n\n|demo-replace|\n\n.. contents:: Table of contents\n   :depth: 3\n\nOverview\n========\n\nI hate a file name that has whitespace.\nSometimes, it occurs a bug of program (Especially, shell script).\nRenaming is boring and takes times.\nSo I created ``rena`` command. This will resolve this problem.\n\nDevelopment\n===========\n\nNim 1.0.6\n\nUsage\n=====\n\nYou can do ``dry-run`` with ``-d`` or ``--dry-run``.\nIt means that you can check file name before real renaming with your eyes.\nFiles or directories will be renamed if you didn't use ``-d`` options.\n\nreplace\n-------\n\n``replace`` sub-command runs replacing characters, ``--from-str`` to ``--to-str``.\n``replace`` replaces whitespace in default.\n\nThis code runs dry-run.\n\n.. code-block:: shell\n\n   $ rena replace --dry-run -t _ target_dir\n\n   # or\n\n   $ rena replace -d -t _ target_dir\n\nThis code actually runs renaming.\n\n.. code-block:: shell\n\n   $ rena replace -t _ target_dir\n\n   # '-p' prints results\n\n   $ rena replace -p -t _ target_dir\n\nYou should use the ``--from-strs`` or ``-f`` options if you want to replace multiple characters.\n\nExamples: Replacing ``(`` and ``)`` to ``_`` .\n\n.. code-block:: shell\n\n   $ rena replace -f '(' -f ')' -t \"_\" target_dir\n\ndelete\n------\n\nYou should use the ``delete`` sub-command if you want to delete characters.\n``delete`` deletes whitespace in default.\n\n.. code-block:: shell\n\n   $ rena delete target_dir\n\nYou should use ``-f`` options if you change delete target characters.\n\n.. code-block:: shell\n\n   $ rena delete -f '(' -f ')' target_dir\n\nlower\n-----\n\n``lower`` sub-command renames *all* characters to lower character.\n\n.. code-block:: shell\n\n   $ rena lower target_dir\n\nupper\n-----\n\n``upper`` sub-command renames *all* characters to upper character.\n\n.. code-block:: shell\n\n   $ rena upper target_dir\n\nInstall\n=======\n\n.. code-block:: shell\n\n   nimble install rena\n\nDownload binary from `Release \u003chttps://github.com/jiro4989/rena/releases\u003e`_.\n\nLicense\n=======\n\nMIT\n\n.. |gh-actions| image:: https://github.com/jiro4989/rena/workflows/build/badge.svg\n   :target: https://github.com/jiro4989/rena/actions\n.. |nimble-version| image:: https://nimble.directory/ci/badges/rena/version.svg\n   :target: https://nimble.directory/ci/badges/rena/nimdevel/output.html\n.. |nimble-install| image:: https://nimble.directory/ci/badges/rena/nimdevel/status.svg\n   :target: https://nimble.directory/ci/badges/rena/nimdevel/output.html\n\n.. |demo-replace| image:: ./docs/demo_replace.gif\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Frena","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiro4989%2Frena","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Frena/lists"}