Gimp-Forum.net
Add keyboard hint to .scm plugins - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Installation and usage (https://www.gimp-forum.net/Forum-Installation-and-usage)
+---- Forum: Linux and other Unixen (https://www.gimp-forum.net/Forum-Linux-and-other-Unixen)
+---- Thread: Add keyboard hint to .scm plugins (/Thread-Add-keyboard-hint-to-scm-plugins)



Add keyboard hint to .scm plugins - lumqarz - 11-29-2016

go to scripts folder
find fu-register
example// alexios-duotone.scm
Code:
(script-fu-register
    "script-fu-duotone"
    _"<Image>/FX-Foundry/Photo/Effects/Simple Duotone..."

make change like this w/ underscore (_) before letter
Code:
(script-fu-register
    "script-fu-duotone"
    _"<Image>/F_X-f/_Photo/_Effects/Simple Duotone..."

Some text editor might have option to replace string in all open text document like in Geany ide.

On linux with example above,
Code:
find . -iname '*.scm' -exec sed -i 's#FX-Foundry/Photo/Effects/#F_X-f/_Photo/_#g' {} \;

this only change photo/effect, I failed to use arrays and loop to get it done quicker.

[Image: fx_f_scrot.png]