[SOLVED] Allow direct * and / with right click values

Darktable : when making a right-clic on a slider, you can :

  • directly enter a value (for example 2.43)
  • entering a formula (for example : 2*3-5 => 1)

It would be nice to be able to enter directly * or / to edit the actual value.
For example, if the actual value is 2.153 and I want to multiply it by 2, it must enter 2.153*2.
It would be nice to just type “*2” and it would multiply by 2 the actual value (2.153… *2 = 4.306 ).

Would be useful for tone equalizer to quickly multiply or divise the values.

Not at my pc but it works for hue in CB module…by default it selects the 180 rotated hue from the picker… typing +180 will actually select the color the picker chose so I guess you could try it… I have not used it for any other use than this…

You can do this. Just use “x” to represent the current value of the slider. For example, enter “x/4” to divide the slider value by 4. As always, fully documented in the fine manual.

6 Likes

That’s not exactly what I asked but it will do the trick, thanks mate. That’s funny how the manual continues to surprise me even after all this time.

My question was more like a “ANS” feature like you can find on calculators (when typing “*2” results in “ANS * 2”).

Maybe, but the current implementation supports 1/x which is not supported by your proposal.

ANS^-1 ?
And the x is far away from the numpad… (left hand people will understand).
Nothing prevents from having both x and ANS functionnalities.

However, the “x” will make the job. I agree there are cases you can not do with ANS (x^2+x-3-500/x). I removed the “suggested feature” tag.

How do I mark the topic as answered ?

EDIT : Ah ok, you just write [SOLVED] in the title, it is not an special tag…thanks

Yes, but that’s by far not something really user (photographer) friendly :slight_smile: