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

Tiny tweaks in default editor settings #20

Merged
merged 1 commit into from
May 25, 2023
Merged

Conversation

sitandr
Copy link
Contributor

@sitandr sitandr commented May 24, 2023

It was a bit suprising to me that there was no word-wrapping by default and no way to enable it. Typst is a language used for typing texts, and adding manual breaks that don't matter is quite meaningless. Also I had issues with default ambigous unicode highlight (Cyryllic, there are numerous charachters that look like Latin, thus I had lots of yellow squares in my text).

So I added these settings to editor initialize to make it a bit more useful. I suppose that in future they should be customizable, but in any case that seems to me as a reasonable default.

src/components/Editor.svelte Outdated Show resolved Hide resolved
src/components/Editor.svelte Outdated Show resolved Hide resolved
@Cubxity Cubxity merged commit a0dbbfd into Cubxity:master May 25, 2023
@sitandr sitandr deleted the word-wrap branch May 25, 2023 17:44
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