(05-14-2025, 09:37 AM)programmer_ceds Wrote: (05-14-2025, 07:33 AM)rich2005 Wrote: (05-13-2025, 02:54 PM)marty39 Wrote: I've been using Gimp for years on a Mac, using a few keyboard shortcuts. I keep it up to date, now using Gimp 3.0.2. All the keyboard shortcuts I used to use in Gimp 2.x are disabled. I deleted shortcutsrc to create the default shortcutsrc, and all the shortcuts are commented out.
Why? What happened? How can I get back the keyboard shortcuts I used to use in Gimp 2.x?
Of course I renamed the default shortcutsrc and brought back the shortcutsrc from the Trash folder so I could have the few shortcuts I created myself. But I'd like to have the whole set.
The format for recording shortcuts has changed between Gimp 2.10 and Gimp 3.0 and the file is renamed as well. Gimp 2.10 = menurc Gimp 3.0 = shortcutsrc
As an example, one I always set to remove all guides.
menurc
(gtk_accel_path "<Actions>/plug-in/script-fu-guides-remove" "g")
shortcutsrc
(action "script-fu-guides-remove" "g")
The old syntax is not going to work in Gimp 3.0 It might be possible to write a script to convert between formats but just bite-the-bullet and do it manually.
Why all the # starting the default settings, I do not know. AFAIK (by use) it does not disable the shortcut.
Anything following the # is treated as a comment. So the lines starting with # and then the default settings are simply showing what the defaults are.
No. In the default shortcutsrc, not only are all lines commented out, but only a few of them show any keystroke information. Like this:
# (action "script-fu-guide-new")
# (action "context-palette-foreground-first")
# (action "view-zoom-1-4" "numbersign" "<Shift>KP_3")
# (action "view-snap-to-canvas")
# (action "filters-bump-map")
In my actual working shortcutsrc, some of the actions—I suppose the ones I used from the menu—are uncommented, but most of them still don't show any keystroke info, while the actions I assigned are uncommented and show the keystroke I assigned. Like this:
# (action "filters-recent-10")
(action "view-zoom-out" "KP_Subtract")
# (action "filters-gegl-fractal-explorer")
# (action "tools-opacity-decrease-skip" "<Primary>less")
# (action "view-scroll-right")
(action "view-zoom-revert")
# (action "filters-diffraction-patterns")
(action "tools-align")
# (action "windows-show-display-previous" "<Shift><Alt>Tab" "Back")
The corresponding portion of the default shortcutsrc is:
# (action "filters-recent-10")
# (action "view-zoom-out" "minus" "KP_Subtract" "ZoomOut")
# (action "filters-gegl-fractal-explorer")
# (action "tools-opacity-decrease-skip" "<Primary>less")
# (action "view-scroll-right")
# (action "view-zoom-revert" "grave")
# (action "filters-diffraction-patterns")
# (action "tools-align" "q")
# (action "windows-show-display-previous" "<Shift><Alt>Tab" "Back")
Puzzle: The default shortcutsrc shows three keys that could activate action "view-zoom-out," but I didn't see any way within the Gimp app to make them work. All I could do was specify one keystroke for it.