Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
Nathan Sobo
,
Antonio Scandurra
, and
Max Brunsfeld
created
2286a94
Make light collab cursor not yellow for Nathan ;)
Nate Butler
created
561857f
Restore all active selections when undoing/redoing autoindent
Click to expand commit body
In the unlikely event that we're handling autoindent requests from multiple editors, we undo/redo selections from both editors. This is somewhat imperfect but probably good enough and easier than performing auto-indents on a per-editor basis.
Nathan Sobo
created
47372e7
Move selections explicitly when applying autoindents
Max Brunsfeld
created
63e775e
Add unit tests for selective indentation adjustment
f66b522
Cancel out outdents and indents referring to the previous row
Antonio Scandurra
created
18e5d75
Bias the start of an autoindent request towards the right for new text
Click to expand commit body
When a newline is inserted, this prevents the request from including
the line on which the newline got inserted.
Antonio Scandurra
created
451f0e7
Replace Buffer::request_autoindent API with ::edit_with_autoindent
Click to expand commit body
When computing the "previous autoindent suggestion", we can't just
use the old tree and the current text. We need to find out what the
suggestion would have been before we made any changes.
Max Brunsfeld
created
c0a75ab
Preserve indentation for lines that are both indented and outdented
Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Max Brunsfeld
and
Nathan Sobo
created
d770255
Remove no-longer-used `dirty` field on `buffer::SyntaxTree`
Click to expand commit body
This became unnecessary when we reworked our reparsing logic
to block from 1ms on each parse.
Max Brunsfeld
created
b5d3ffb
Fix collection of row ranges in Buffer::perform_autoindent
Max Brunsfeld
created
2f29538
Implement selective auto-indent by comparing old and new suggestions