Page 1 of 1

MultiRename-1.13 - a batch file renamer

Posted: Sat Aug 01, 2020 11:31 am
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 2634 times

Greetings!


Re: MultiRename-1.10 - a batch file renamer

Posted: Sat Jan 22, 2022 1:04 pm
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

Re: MultiRename-1.10 - a batch file renamer

Posted: Sat Jan 22, 2022 1:30 pm
by p310don

Thanks @JakeSFR I use this all the time


Re: MultiRename-1.10 - a batch file renamer

Posted: Sat Jan 22, 2022 2:28 pm
by ally

me too

almost everyday

:)


Re: MultiRename-1.10 - a batch file renamer

Posted: Sat Jan 22, 2022 4:23 pm
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 ??


Re: MultiRename-1.10 - a batch file renamer

Posted: Sat Jan 22, 2022 5:31 pm
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!


Re: MultiRename-1.10 - a batch file renamer

Posted: Sat Jan 22, 2022 5:48 pm
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:


Re: MultiRename-1.11 - a batch file renamer

Posted: Tue Mar 15, 2022 11:27 am
by JakeSFR

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

Greetings!


Re: MultiRename-1.11 - a batch file renamer

Posted: Sun Aug 14, 2022 3:00 am
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:


Re: MultiRename-1.11 - a batch file renamer

Posted: Sun Aug 14, 2022 10:07 am
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!


Re: MultiRename-1.12 - a batch file renamer

Posted: Thu Aug 18, 2022 8:39 am
by JakeSFR

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

Greetings!


Re: MultiRename-1.12 - a batch file renamer

Posted: Thu Jul 25, 2024 10:03 pm
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


Re: MultiRename-1.13 - a batch file renamer

Posted: Fri Jul 26, 2024 8:53 am
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!