android-scripts/resource-renamer
Florian Schrofner 2059abb93c add drawable mover script 2023-05-16 17:01:26 +02:00
..
readme.md add drawable mover script 2023-05-16 17:01:26 +02:00
rr.clj add resource renamer script 2022-10-16 14:41:01 +02:00

readme.md

Resource Renamer

A tool that enables you to quickly rename a single Android resource that is already split up into multiple folders, e.g. drawable-xhdpi, drawable-xxhdpi, ... It will reuse the file extension of the files that are already present inside the directory.

Example Usage

./rr.clj -d "/home/schrofi/Downloads/random_asset" -n "ic_photo"

Fish

To more conveniently use the tool from the commandline, you can define a fish function like this:

function rr 
    PATH_TO_SCRIPT/rr.clj -d $(pwd) -n $argv[1]
end

funcsave rr

And then just use the tool by opening a terminal in the resource folder you want to rename and execute rr TARGET_NAME.