PgBiel

Results 402 comments of PgBiel

You should step the counter before displaying it. You can check if `it.numbering != none` to avoid stepping twice.

This is already possible through `join()`. The code below returns `(1, 2, 3, 4)`: ```typ #((1, 2), (3, 4)).join() ```

(This is already being worked on by the way, in case there are any interested contributors)

Also, `string.slice` lets you use negative indices to slice starting at some offset from the end of the string, while `bit_array.slice` doesn't. Maybe both could accept that?

Thanks for the input @lpil . I think my reply might have been a bit confusing (sorry!), so just to clarify: I meant being able to pass a negative number...

So, I had this crazy idea: ```typ #show heading: set text(red) = Red heading // syntax prone to bikeshedding #unapply @my-show-rule // or or something = Not red heading ```

> @PgBiel do you have Xcode and could record a profile of when that happens? It's really hard to get to the bottom of this without circling in on when...

> > For reference, though, I was editing the Typst codebase (at https://github.com/typst/typst). > > Great! That's fantastic to know. Anything specific you did there? Any file you had open...

Hey @mrnugget. Unfortunately I don't have a reliable way to reproduce it, and it's been a while since I've last tested it (and even more so experienced it). I'll let...

Related: https://github.com/typst/typst/issues/895