typst-lsp icon indicating copy to clipboard operation
typst-lsp copied to clipboard

[feature request] Rename variable

Open Heinenen opened this issue 2 years ago • 4 comments

I think it would be cool to have the possibility to rename variables and functions. The VSCode action would be "Rename Symbol" with shortcut F2 (on Windows and Linux).

Heinenen avatar Mar 28 '23 16:03 Heinenen

If we want that we should probably contribute it to typst::ide directly

Note that it is usually difficult to provide in the context of loosely typed languages like typst

astrale-sharp avatar Mar 29 '23 11:03 astrale-sharp

@Heinenen @astrale-sharp I think this should be transferred to typst/typst. The FR is directly related to typst_ide, and it could attract more comments after moving to upstream.

Myriad-Dreamin avatar Jan 15 '24 14:01 Myriad-Dreamin

Uh, I think we should open a new issue at typst/typst and also keep this issue in typst-lsp, because we need additional lsp support to allow press F2 and rename symbol then.

Myriad-Dreamin avatar Jan 15 '24 14:01 Myriad-Dreamin

Done.

Andrew15-5 avatar Jan 15 '24 15:01 Andrew15-5