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

Fix double clicking an identifier selecting glyphs #20

Merged
merged 2 commits into from
Mar 30, 2025

Conversation

ekgame
Copy link
Contributor

@ekgame ekgame commented Mar 30, 2025

This change defines every Uiua glyph as a word separator. This fixes an issue I have where double clicking an identifier to select it would also select nearby glyphs, which often results in unintentionally deleting some necessary logic when refactoring code. This change also excludes ! and & from separators, because they are also often a part of an identifier and you would want to select them when double clicking an identifier.

As a bonus, when I was browsing the code, I noticed that the identifier definition in uiua.tmLanguage.json did not include negative subscripts, so I also added those.

@kaikalii
Copy link
Member

Oh, thanks! I was wondering how to do this.

@kaikalii kaikalii merged commit b9c1896 into uiua-lang:main Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants