darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.13k stars 1.11k forks source link

two shortcuts feature requests #16490

Open SoupyGit opened 4 months ago

SoupyGit commented 4 months ago

1) Shortcuts can be set for different instances, such as 'first', 'preferred', 'last', etc... I would like added to the list an option for 'all' instances. For example, if I have multiple instances of color balance rgb, when I hit the shortcut for 'white fulcrum' (Button, Toggle) I would like it to apply to all instances of that module.

2) Allow a shortcut to apply to more than one button. For example, I have set alt+w for the 'white fulcrum' in color balance rgb. The 'white level' button in color equaliser serves the same purpose, so I would like to use the same alt+w shortcut to work on both at once, but that is currently not allowed. When I try to set alt+w on 'white level' it asks if I would like to remove the existing shortcut on 'white fulcrum', and after answering no, does not apply the shortcut. It would be preferable if there were three options. You can probably come up with better names, but something like: a) replace existing, b) keep existing, c) additional to existing

github-actions[bot] commented 2 months ago

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

wpferguson commented 1 month ago

Allow a shortcut to apply to more than one button.

Here's a script, whitefulcrum.lua, that does what you want. It adds a slider under the lua-scripts called white-fulcrum. You can assign a shortcut to it (I used alt+w+scroll) then open an image in darkroom and use it. One downside is that it generates a lot of history stack entries while you're scrolling, so you may need to compress the history stack after you scroll.

whitefulcrum.zip