typst / typst/typst

Add symbol rename capability to typst-ide crate

Open
#3,201 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request ide
Dominant language
Rust
Stars
56.1k
Forks
1.7k
Avg merge
3d 10h
Merged PRs (30d)
22

Description

Description

One of the most powerful features that improves dev productivity is the ability to rename variables via an LSP server.

This was first mentioned here: https://github.com/nvarner/typst-lsp/issues/51.

LSP spec reference:
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_rename

Use Case

Renaming variables and function names in Typst. Note that it should support Unicode names (some projects at first only supported ASCII names), which will bring even more convenience to the DX.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the typst-ide crate and the LSP 3.17 textDocument/rename specification, then review the earlier discussion in typst-lsp issue #51. The work is done when Typst variable and function names can be renamed through the LSP, including Unicode names.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.