Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode macros for Lean language #8227

Closed
bonsairobo opened this issue Sep 10, 2023 · 1 comment
Closed

Unicode macros for Lean language #8227

bonsairobo opened this issue Sep 10, 2023 · 1 comment
Labels
C-enhancement Category: Improvements

Comments

@bonsairobo
Copy link

bonsairobo commented Sep 10, 2023

It would significantly improve the experience of editing Lean code if Helix had support for unicode macros, like VSCode has, as described here:

The editor shares a number of features with Visual Studio Code; for example, you can type unicode characters with a backslash, so \and yields the unicode symbol for conjunction, and \a, \b, and \g yield the unicode α, β, and γ respectively.

The behavior present in the "lean4" vscode plugin is that you can just type "\a" and then <space> and the "\a" will be replaced with "α".

@bonsairobo bonsairobo added the C-enhancement Category: Improvements label Sep 10, 2023
@pascalkuthe
Copy link
Member

This could be either implemented using abbreviations (#1471) or unicode diagraph support (#1438). Both of which should be implemented using a future snippet system IMO.

This feature request is too specific, we don't adllow any language specific code in core.

@helix-editor helix-editor locked and limited conversation to collaborators Sep 10, 2023
@pascalkuthe pascalkuthe converted this issue into discussion #8228 Sep 10, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

2 participants