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

Desktop: Codemirror clean up list indent code #3581

Merged
merged 2 commits into from
Aug 1, 2020

Conversation

CalebJohn
Copy link
Collaborator

This looks like a lot of changes but it's just because diff get's confused when I added a wrapper call to cm.overlay which batches updates for slightly better performance.

The main change here is that I disabled the smart insertListElement code when there are multiple cursors. It just becomes too difficult to track the correct behaviour.

I also mixed in a couple of fixes to this file that I noticed, namely the whitespace regex I updated in a different pull was being used 3 times and I didn't update for all of them. It's all good now though.

disable smart enter handling for multiline selections (it was too
complicated to keep track of)
Fix other whitespace checks to also check start of string
Update xml check to reflect that we now use markdown mode not gfm
@CalebJohn CalebJohn added desktop All desktop platforms editor labels Jul 31, 2020
also make tab behavior normal for non-empty lists
@laurent22 laurent22 changed the base branch from master to dev August 1, 2020 18:09
@laurent22 laurent22 merged commit bbfed9b into laurent22:dev Aug 1, 2020
@CalebJohn CalebJohn deleted the codemirror-multicursor branch August 1, 2020 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop All desktop platforms editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants