Enhancement request : ui-blob: Make the target line of a link, visually identifiable.

Christian Hesse list at eworm.de
Sat Feb 3 20:20:14 UTC 2024


Loïc <lagiraudiere+cgit at free.fr> on Sat, 2024/02/03 18:20:
> Hi all,
> 
> When I create a reference to a precise line in a file (for instance a 
> hyperlink to "https://git.zx2c4.com/cgit/tree/cgit.css#n321" ), I miss a 
> visual feedback, on the line I want to highlight.
> 
> To implement this feature, I suggest to add a curved arrow ahead of the 
> line number.
> That could be done by adding the following stylesheet to cgit.css
> 
>     div#cgit table.blob td.linenumbers a:target:before {color: 
> red;content: "\2BA9";}

Pushed here, but I can not tell if or when this will see any more attraction:

https://git.zx2c4.com/cgit/log/?h=ch/highlight-line
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20240203/be0ad4a0/attachment.sig>


More information about the CGit mailing list