MultiRename-1.13 - a batch file renamer

Moderator: Forum moderators

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

MultiRename-1.13 - 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 2551 times

Greetings!

Attachments
multirename-1.13.pet
MD5: f06b428d5e67588a2f4eb8b1b261143e multirename-1.13.pet
(12.79 KiB) Downloaded 20 times
multirename-1.12.pet
MD5: 9dd51d4564e457fe523cbb59bc3569ed multirename-1.12.pet
(13.1 KiB) Downloaded 88 times
multirename-1.11.pet
MD5: e6dc9995626b4dfdbe371499cc337020 multirename-1.11.pet
(12.37 KiB) Downloaded 95 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: 273
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 158 times

Re: MultiRename-1.10 - a batch file renamer

Post by JakeSFR »

Changelog

Version 1.13:

  • added more sorting options (General, Human, Month, Numeric, Version, Random)
  • added .tar.bz3, .tar.bzip3, .cpio.bz3, .cpio.bzip3 to known double extensions

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: 356
Joined: Tue Dec 03, 2019 7:17 am
Location: Brisbane, Australia
Has thanked: 72 times
Been thanked: 103 times

Re: MultiRename-1.10 - a batch file renamer

Post by p310don »

Thanks @JakeSFR I use this all the time

User avatar
ally
Posts: 186
Joined: Tue Jul 07, 2020 5:14 am
Has thanked: 117 times
Been thanked: 81 times
Contact:

Re: MultiRename-1.10 - a batch file renamer

Post by ally »

me too

almost everyday

:)

User avatar
rockedge
Site Admin
Posts: 6481
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2692 times
Been thanked: 2592 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: 273
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 158 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: 6481
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2692 times
Been thanked: 2592 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: 273
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 158 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: 1222
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 20 times
Been thanked: 435 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: 273
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 158 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: 273
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 158 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.
bob93
Posts: 53
Joined: Fri Nov 25, 2022 8:29 am
Location: Fossapup64 9.5
Has thanked: 21 times
Been thanked: 1 time

Re: MultiRename-1.12 - a batch file renamer

Post by bob93 »

Does this program allow to shuffle files by adding random numbers with regular expressions or something ilke that? The version I have is 1.8

Fossapup64 9.5

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

Re: MultiRename-1.13 - a batch file renamer

Post by JakeSFR »

No, but it was a trivial modification to add more ordering options, since it's already using sort command.
Check out version 1.13.

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”