MultiRename-1.12 - a batch file renamer

Moderator: Forum moderators

Post Reply
User avatar
JakeSFR
Posts: 254
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 124 times

MultiRename-1.12 - a batch file renamer

Post by JakeSFR »

[Original thread: https://oldforum.puppylinux.com/viewtopic.php?t=101154]

MultiRename is a batch file renamer packaged as a ROX right-click app.
Requires Gtkdialog >= 0.8.3.
German translation by L18L.

MultiRename.png
MultiRename.png (93.08 KiB) Viewed 1614 times

Greetings!

Attachments
multirename-1.12.pet
MD5: 9dd51d4564e457fe523cbb59bc3569ed multirename-1.12.pet
(13.1 KiB) Downloaded 70 times
multirename-1.11.pet
MD5: e6dc9995626b4dfdbe371499cc337020 multirename-1.11.pet
(12.37 KiB) Downloaded 72 times
Last edited by JakeSFR on Thu Aug 18, 2022 8:38 am, edited 3 times in total.
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
JakeSFR
Posts: 254
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 124 times

Re: MultiRename-1.10 - a batch file renamer

Post by JakeSFR »

Changelog

Version 1.12:
- added "Capitalize" action
- added "Select directory" button, next to path entry field
- added "Enable pattern matching" checkbox to the Replace action (simple Bash pattern matching)
- better sorting when hidden files are enabled
- fixed status bar not refreshing after pressing Enter in path entry field
- some other minor fixes and improvements

Version 1.11:
- Gtkdialog (GTK+3): show folder and file icons in TreeView, just like in GTK+2
- Gtkdialog (GTK+3): make the 'Actions' vbox scrollable, otherwise the entire window is too tall
- Filter: escape '\ * ? [ ]' chars to make literal matching easier
- Filter: add 'Regex' checkbox (find's egrep regextype)
- TreeView: add an empty, narrow column to separate "Old Name" and "New Name" columns better

Version 1.10:
- added an option to replace only the first occurence in the Replace action
- bugfix: quote strings in the Replace action to prevent expanding them by Bash

Version 1.9:
- added an option to show only folders or files
- added a simple filter (based on find's -name/-iname)
- added an option to ignore extensions for folders
- the "New Name" column now also shows filenames that haven't changed (for consistency & aesthetics)
- a slightly faster Preview (req. Bash >= 4.3)
- fixed renaming items with basename = extension (e.g. foo.foo)
- small fixes and improvements

Last edited by JakeSFR on Thu Aug 18, 2022 8:39 am, edited 2 times in total.
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
p310don
Posts: 290
Joined: Tue Dec 03, 2019 7:17 am
Location: Brisbane, Australia
Has thanked: 55 times
Been thanked: 92 times

Re: MultiRename-1.10 - a batch file renamer

Post by p310don »

Thanks @JakeSFR I use this all the time

User avatar
ally
Posts: 184
Joined: Tue Jul 07, 2020 5:14 am
Has thanked: 109 times
Been thanked: 78 times
Contact:

Re: MultiRename-1.10 - a batch file renamer

Post by ally »

me too

almost everyday

:)

User avatar
rockedge
Site Admin
Posts: 5714
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 1994 times
Been thanked: 2097 times
Contact:

Re: MultiRename-1.10 - a batch file renamer

Post by rockedge »

Important tool for me as well! I use mostly a Puppy Linux Bionic64-CE (built directly with woof-CE) to build KLV and WDL distro's and batch file renaming is a very handy tool to have.

Good work!

@JakeSFR Do you think this can work on KLV-Airedale ??

User avatar
JakeSFR
Posts: 254
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 124 times

Re: MultiRename-1.10 - a batch file renamer

Post by JakeSFR »

Oh, it's good to know I'm not the only one who's still using it. :) Thanks guys!
___________

rockedge wrote: Sat Jan 22, 2022 4:23 pm

@JakeSFR Do you think this can work on KLV-Airedale ??

I just tried the script alone (from terminal) in QEmu and, at least on the first glance, it seems to work ok.

Btw, thanks for fixing the URL.

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
rockedge
Site Admin
Posts: 5714
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 1994 times
Been thanked: 2097 times
Contact:

Re: MultiRename-1.10 - a batch file renamer

Post by rockedge »

@JakeSFR

Actually there was only part of the path that was missing!
https://murga-linux.com/viewtopic.php?t=101154 will FAIL because the structure John M. used on the original web server placed the web root in https://murga-linux.com/puppy. So adding back in the missing directory to the path ->https://murga-linux/puppy/viewtopic.php?t=101154 will fix it.

example : https://murga-linux.com/puppy/viewtopic.php?t=101154

If you run across the same type of URL, you could insert /puppy/ into the path and it should work :thumbup:

User avatar
JakeSFR
Posts: 254
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 124 times

Re: MultiRename-1.11 - a batch file renamer

Post by JakeSFR »

Updated to v1.11. Changelog in the second post.

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
MochiMoppel
Posts: 1116
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 17 times
Been thanked: 359 times

Re: MultiRename-1.11 - a batch file renamer

Post by MochiMoppel »

JakeSFR wrote: Tue Mar 15, 2022 11:27 am

Updated to v1.11. Changelog in the second post.

Thank you :thumbup2:

I admit that I haven't used it in a long time and therefore couldn't figure out how to change the source folder :oops:
I added the new folder path into the entry box and expected that the Refresh button would populate the tree with the files of that folder, but it always reverted to the folder I just erased from the box. Only after checking your script I discovered that I should have pressed Enter instead of using the Refresh button.

Since I'll probably do the same mistake next time I changed the button from

Code: Select all

            <button tooltip-text="'$(gettext "Re-read current directory")'">
              <input file stock="gtk-refresh"></input>
              <action>func_readdir "$(cat $WORKDIR/curdir)"</action>
              <action>refresh:varLIST</action>
              <action>refresh:varCURDIR</action>
              <action>refresh:varSTATUS</action>
              <action>disable:varCOMMIT</action>
            </button> 

to

Code: Select all

            <button tooltip-text="'$(gettext "Re-read current directory")'">
              <input file stock="gtk-refresh"></input>
              <action>activate:varCURDIR</action>
            </button>

So far seems to work as I expected. Hope I didn't break anything :lol:

User avatar
JakeSFR
Posts: 254
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 124 times

Re: MultiRename-1.11 - a batch file renamer

Post by JakeSFR »

Hey Mochi,

No, it shouldn't break anything, it just redefines what is considered to be a current directory.
But I just noticed that the entry field is missing one action:

Code: Select all

<action signal="activate">refresh:varSTATUS</action>

so if you have, for example, some items highlighted and then change the dir using that field + Enter, the status bar won't refresh (I'll fix it in next version).
Anyway, the entry field was meant only for informational purposes - I had made it functional just in case.

As for changing the folder, I hope that in the past you were aware that you can just double-click any folder, like in gFnRename?
Or, <tab> your way to the list and then use cursor keys and Enter.

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
JakeSFR
Posts: 254
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 124 times

Re: MultiRename-1.12 - a batch file renamer

Post by JakeSFR »

Updated to v1.12. Changelog in the second post.

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Post Reply

Return to “Filesystem”