[PATCH RFC] hgweb: code selection without line numbers in file source view

Alexander Plavin me at aplavin.ru
Wed Jul 3 12:16:28 CDT 2013


2013/7/3 Laurens Holst <laurens.nospam at grauw.nl>:
> Op 03-07-13 18:49, Alexander Plavin schreef:
>>
>> 2013/7/3 Laurens Holst <laurens.nospam at grauw.nl>:
>>
>>> “ I don’t like that the screen jumps when you select something. I like to
>>> select where I’m reading so I don’t lose track, and this heavily
>>> interferes
>>> with that. It would be better if only clicking on the line number would
>>> change the target.”
>>
>> Using this strategy there are no unexpected jumps. You can look at
>> this at hg.aplavin.ru :)
>
>
> Thanks for pointing me to it.
>
> I think it is the same as it was before, it jumps when you deselect... So it
> still interferes with me :). I’d rather prefer that just the line numbers
> were clickable, the way it works now.

It's impossible to add click handler just to the :before pseudo
element. However, I haven't noticed this before you told, as I
unselected by clicking not at the code.

>
> You could communicate this to the user by styling the :before like a link
> when hovered (I suggest blue / underlined like a link, with hand cursor).
> That’d even be an improvement over the current situation where we provide no
> visual clues of this feature.
>
> ~Laurens
>


More information about the Mercurial-devel mailing list