Registered Member
|
Hi,
I'm trying to figure out how to launch krename via shortcut to work on selected files in Dolphin. Everything works fine if I use the built in service-menu shortcut via r-click, but I'd rather use F2 to launch it instead of the basic renamer. I've tried adding a shortcut through the built in shortcut manager, but it only launches the app and doesn't pass the selected files to it. I also tried using a custom shortcut and added the same arguments that are in the desktop file, but that has no effect either.
Is there a way to assign a shortcut to a service-menu, or a command that will pass the selected files properly to a custom shortcut? |
Registered Member
|
It's in the system settings, shortcuts. By default, F2 is enabled in kubuntu.
If you want a top level ( main right click) service menu, you can. To be placed in ~/.local/share/kservices5/ServiceMenus Xdotool required and icons to your liking. Of course, F2 has to be enabled first.https://imgur.com/a/bmXUugl [Desktop Entry] Type=Service Icon=edit-find X-KDE-ServiceTypes=KonqPopupMenu/Plugin MimeType=all/all; Actions=Rename X-KDE-Priority=TopLevel #X-KDE-Submenu= Encoding=UTF-8 [Desktop Action Rename] Name=FSearch Icon=edit-find Exec=xdotool key F2
This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
|
Registered Member
|
Hi @dzon,
Thanks for the reply. I should have explained better. When I installed Dolphin and KDE, F2 was already assigned to to a basic renamer that is only really useful for numbered files. Also, I already have krename in my service menu. (Actually a couple times while trying different configurations while experimenting. The issue is for roughly the last 20 years I would make a selection of files and mash F2 to launch a batch renamer. It's quicker and is muscle memory to boot. Using the R-Click works without issue and passes the selected files to krename for renaming, but is much slower. When launching krename through the shortcut manager via any assigned key, it will only open the app, but will not pass the files to be renamed. After even more researching I think I found the issue and it looks like it may never be possible. I really thought I was upgrading when moving from xfce/thunar, but looks like some things are a downgrade. :/ https://bugs.kde.org/show_bug.cgi?id=260266 Thanks for trying to help! |
Registered Member
|
I've tried to bind krename and bionic batch to F2, to no avail. Any type of script, flag, desktop app,...no use. The selected files aren't parsed to the app.
And, from what I can tell, a dolphin custom toolbar button isn't coming to 5.27 either ( will never happen I guess, it's dolphin, not caja, nemo, thunar,spacefm,zzzfm...). Neither can you add a custom shortcut for any of the bulk renamers. Well, you can, but it won't load the selected files. I only came close to one script, but for some reason it only loaded a single file. A custom toolbar button in dolphin has been requested since Napoleon lost at Waterloo and it was possible/available in the git version at some point. Halas... The F2/rename function is...primitive, to say the least. However, ....a request has been made to change the numbering to files or names. There's no point in trying others bulk renamers like thunar, bionic or gprename since they simply will not load the selected.So, I'm afraid the closest ( and fastest) is a toplevel servicemenu, either the default or a custom one. https://imgur.com/a/F35F1Rc
This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
|
Registered Member
|
Might I add. The function does work in Krusader. It has shift+F2 as default to open krename with the selected files.https://imgur.com/a/opGWJV4
This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]