Add the ability to mark a certain position on kruler.

I would really like to be able to mark a position on the ruler like when you hover just that it stays when you move the mouse away, maybe you could show the distance from the mark to the current cursor hover position, as I often either do basic math to figure out the distance between two points or I place the ruler on the edge of point 1 and the move the cursor on point two.

Thanks for reading.

this sounds like a Hold feature as you see with many measurement devices that will freeze the display with an H indicator so show that the value shown is frozen and not live.

add a keyboard shortcut for the Hold feature H for the use case:

  • place ruler at one end of what you want to measure
  • align the cursor with the other end to get the measurement
  • press H to hold the display while you move your cursor to another application

another use case for the Hold feature is:

  • measure one feature, and press H to hold the value
  • drag the ruler over to another feature to compare size without losing the value

might also suggest a Copy feature where the value can be sent to the clipboard for pasting.

Copy maybe all that is needed here, if the goal is to extract a measurement value.

The H key for hold is good, but I thought more of giving the distance relative from the held position, as you then dont need to place the ruler at the edge of point 1 which can be a hassel if you want acurate pixel values.

Copy maybe all that is needed here, if the goal is to extract a measurement value.

Copy is a good idea but in the end you really dont want to always copy two values and put them into krunner or kalc, this is something that kruler could do instead.

Still some good ideas to be considered

sorry, i guess i misunderstood.

can you please detail the exact use case you are trying to achieve, i guess i’m not clear on what you want.

My goal is that the user isnt forced to either place the ruler at the edge of point 1 and mesure from there or to calculate the distance between two points using a third reference point and intead can place a hold line on the ruler at point 1 and get the relative distance between point 2 and the hold line.

1 Like

oh, you want a mark A ⇒ measure B kind of a function.

yeah, that’s completely different, but it does involve holding one value while you do it so it is something that could be built on top of an H hold function.

so while holding a position with H, you can now get a new floating measurement B cursor relative to the H position using H as the new origin… thus giving you the difference between the two positions.

then throw the copy capability in there and you have a way to export the relative value between H and B.

is that the idea?

Yeah that would do it.

then next step would be to write up a “wishlist” report on bugs.kde.org against the kruler package

describing this use case in detail and upload any artwork that shows the functionality

be sure to link the report here so it can be commented on by others.