slurp icon indicating copy to clipboard operation
slurp copied to clipboard

Label is filled with output name even when selecting custom rectangle

Open Vladimir-csp opened this issue 1 year ago • 5 comments

Launching with -o -f '%l' Expecting output name in the label only when output box was selected (click), not when drawn a custom rectangle.

Vladimir-csp avatar May 15 '24 10:05 Vladimir-csp

That's expected behavior though.

emersion avatar May 15 '24 18:05 emersion

It's not a label of selected region though. And it could be used for differentiating between result being whole output or region selection based on user action.

Vladimir-csp avatar May 15 '24 19:05 Vladimir-csp

What would you expect to happen? What other label would it print?

If you use -o -f '%l %x,%y %wx%h' it will print the output as the label AND will print the region selected.

tmccombs avatar Sep 14 '24 06:09 tmccombs

I expected label to be empty if region is selected. Maybe there is some other way to differentiate between output and region selection?

Vladimir-csp avatar Sep 14 '24 09:09 Vladimir-csp

And what would be the format for the selected region?

I think probably the best way to handle that would be to allow setting separate formats for selecting a labeled region and selecting a custom region.

tmccombs avatar Sep 14 '24 15:09 tmccombs