How to rename a label and its references?

Say I have a label <equation-1> referring to some object (for example an equation):

$ f(x) = x^2 $ <equation-1>

Then I have a bunch of references throughout my document to this label. Is there an easy way to rename this label, so that also all references to it are automatically updated?

Not automatically, but can use “Edit → Search and replace” (or CTRL+F).

Find and replace seems to work only for the current document, not globally on all documents of a project.

Hello @matcha25, I have renamed your post “How to rename a label and its references?”. You can take a look at How to post in the Questions category, we recommend that

Which editor are you using?

1 Like

The web editor, at typst.app.

Unfortunately, I don’t see an easy way to do it at the moment in the webapp.

Webapp

I haven’t seen an issue at GitHub · Where software is built to rename labels/references. I think it would be best to create it, so the developers can track that.

However, I have found Global Search · Issue #341 · typst/webapp-issues · GitHub.

Tinymist

For tinymist, the issue is this one Rename labels · Issue #549 · Myriad-Dreamin/tinymist · GitHub, which I created a while ago. It’s easier to do when using other editors, because global search and replace is usually implemented.

I agree. Will you create an issue?

I can create one if you can’t or won’t. It’s usually best if the involved party creates it so they get notification when someone answers, or the issue is closed.