How can I add the ability to send selected files to bulk renamer

I have recently migrated to Plasma 6 (Tuxedo OS) and I don’t care for Dolphin’s overly simplistic file rename capability. I prefer Cinnamon’s or XFCE’s. Is it possible to add a “Send to Bulk Renamer” option to the right click menu for any selection of files?

thunar --bulk-rename %F is the application command in the KDE menu, so I’m guessing this is what it would look like as a command for this as well.

Right clicking and choosing Open With… and then selecting Bulk Renamer seems to work, but it’s clunky. I’m hoping to add a single right-click select action…

Help :).

Hi - there’s actually a pretty flexible ability built-in to Dolphin to add “service menu” items that become available when you right-click. That’s described in a good amount of detail here: Creating Dolphin service menus | Developer

For an extremely simple example, here’s the service menu that I have in ~/.local/share/kio/servicemenus/ for using KDiff3 to compare files:

[Desktop Entry]
Type=Service
MimeType=application/octet-stream;
Actions=compareWithKDiff3
X-KDE-RequiredNumberOfUrls=2

[Desktop Action compareWithKDiff3]
Icon=vcs-diff-symbolic
Name=Compare with KDiff3
Exec=flatpak run --file-forwarding org.kde.kdiff3 @@ %U @@;

But of course you can choose whatever executable you like and use more of the capabilities mentioned on the KDE Developer site as you need :slight_smile:

1 Like

@johnandmegh - awesome, worked great:

mkdir -p ~/.local/share/kio/servicemenus
touch ~/.local/share/kio/servicemenus/renamer.desktop
chmod +x ~/.local/share/kio/servicemenus/renamer.desktop
vi ~/.local/share/kio/servicemenus/renamer.desktop
[Desktop Entry]
Type=Service
MimeType=application/octet-stream;
Actions=renameWithThunar

[Desktop Action renameWithThunar]
Icon=org.xfce.thunar
Name=Rename with Thunar
Exec=thunar --bulk-rename %U;

1 Like