Skip to content
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

Consider adding a completion for unicode symbols in aliases #356

Open
marat-rkh opened this issue Feb 8, 2022 · 5 comments
Open

Consider adding a completion for unicode symbols in aliases #356

marat-rkh opened this issue Feb 8, 2022 · 5 comments

Comments

@marat-rkh
Copy link
Member

Suppose I am writing the following declaration:

\data Term
  | ref Id
  | lam Id Term
  | app \alias \infixl 7 {-caret-} Term Term

I want to add alias for app. The IDE doesn't help me with this.

  1. To add the alias I have to open Unicode symbols table somewhere externally.
  2. Sometimes, the symbol I find is invalid, because Arend allows a restricted set of them in aliases.

I think this can be addressed by adding a completion. For this particular case, the completion item would be called bullet or bullet_point (this is the name of the symbol in the Unicode table). When you select it, it inserts .

@valis
Copy link
Collaborator

valis commented Feb 8, 2022

This is actually kind of the point. We allow a restricted range of Unicode symbols because otherwise there will be a large number of incomprehensible and almost identical ones. We may enlarge the allowed set, but we need to choose new symbols carefully. I think we already discussed this somewhere and I even gave a list of possible candidates. Anyway, here it is again:

Arrows 2190-21FF
Leterlike Symbols 2100-214F
Miscellaneous Methematical Symbols_A 27C0-27EF
Suplemental Arrows_A 27F0-27FF
Suplemental Arrows_B 2900-297F
Miscellaneous Methematical Symbols_B 2980-29FF
Supplemental Mathematical Operators 2A00-2AFF
Mathematical Alphanumeric Symbols 1D400-1D7FF

We don't have any completion for Unicode symbols in declarations basically for the same reason. It should be easy to use them (and it is), but not that easy to declare them, so that they won't be overused.

@marat-rkh
Copy link
Member Author

marat-rkh commented Feb 9, 2022

Yeah, we have talked about adding more symbols here:
JetBrains/Arend#299

Speaking of completion. Do I get it correctly that you would avoid adding it completely?

@valis
Copy link
Collaborator

valis commented Feb 10, 2022

Do I get it correctly that you would avoid adding it completely?

That was the initial intent. I'm not strongly against it, but I think we can keep it at that for the time being.

@marat-rkh
Copy link
Member Author

Ok, got your point)

@marat-rkh marat-rkh changed the title Completion for unicode symbols in aliases Consider adding a completion for unicode symbols in aliases Feb 10, 2022
@sxhya sxhya added the feature label Aug 9, 2023
@sxhya
Copy link
Collaborator

sxhya commented Mar 7, 2024

@valis Is your last commit 07894de related to this issue? Can it be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants