Commit log

5fe3081 Rename context parameters to `cx` in pane.rs

Max Brunsfeld created

16c6400 Rename context parameters to `cx` in fold_map.rs

Max Brunsfeld created

a4aba3f Rename context parameters to `cx` in selection.rs

Max Brunsfeld created

7148925 Rename context parameters to `cx` in movement.rs

Max Brunsfeld created

765a8d0 Rename context parameters to `cx` in editor/element.rs

Max Brunsfeld created

ca87dcc Rename context parameters to `cx` in display_map.rs

Max Brunsfeld created

b4430d1 Rename context parameters to `cx` in buffer.rs

Max Brunsfeld created

e8deed4 Rename context parameters to `cx` in worktree.rs

Max Brunsfeld created

bc4f5af Rename context parameters to `cx` in workspace.rs

Max Brunsfeld created

2285cba Rename context parameters to `cx` in file_finder.rs

Max Brunsfeld created

5176f3d Rename context parameters to `cx` in editor.rs

Max Brunsfeld created

90f3554 Rename BufferView -> Editor

Click to expand commit body
* BufferElement -> EditorElement

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

139bcb8 Rename `foo/mod.rs` files too `foo.rs`

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

9369249 Merge pull request #73 from zed-industries/grammars-cursor

Click to expand commit body
Initial syntax support

Max Brunsfeld created

7339b9b Bump Tree-sitter

Click to expand commit body
Pass ranges to `set_byte_range`, `set_point_range`

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

8b7a314 Implement bracket matching using queries

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

e9bd872 Implement buffer::move_to_enclosing_bracket

Nathan Sobo created

276991f WIP

Antonio Scandurra created

bf8eee2 Add `Buffer::enclosing_bracket_ranges`

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>

Antonio Scandurra , Nathan Sobo , and Max Brunsfeld created

0b51e99 Delete stale `indents.scm` file

Antonio Scandurra created

36c1d21 Add unit test for `BufferView::select_{larger,smaller}_syntax_node`

Antonio Scandurra created

0ed9e74 :lipstick:

Antonio Scandurra created

8a97e9c Implement `select-smaller-syntax-node` for buffer

Antonio Scandurra created

23d1d91 Implement `select_larger_syntax_node` for buffer

Antonio Scandurra created

6992c19 Acquire and release `QueryCursor`s via a `QueryCursorHandle`

Antonio Scandurra created

07aeb32 Punt on auto-indentation for now

Antonio Scandurra created

79878f2 WIP - new approach to autoindent

Click to expand commit body
- Indent one row at a time.
- Consider only the innermost match.

Max Brunsfeld created

fc8758c Reset QueryCursors before putting them back in the pool

Click to expand commit body
Co-Authored-By: Antonio Scandurra <me@as-cii.com>

Max Brunsfeld and Antonio Scandurra created

c423033 Fix panic in `autoindent_for_rows` caused by overshooting row range

Antonio Scandurra created

362b369 WIP: Print autoindents on tab

Antonio Scandurra created

1cd04bd Rename `indent.scm` to `indents.scm`

Antonio Scandurra created

7bea3fd Start on a query-based autoindent system

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

3c06738 :lipstick: Add Buffer::row_count

Max Brunsfeld created

7c08484 Batch `indent_for_rows`

Click to expand commit body
There's still a `todo!` in the test to write more assertions and verify
this more complex, batched logic.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

9b69cea Replace `mod_item` with `declaration_list` for Rust's autoindent

Antonio Scandurra created

acf84f9 Add `Buffer::autoindent_for_row`

Antonio Scandurra created

d38d944 Add `indent` and `indent_nodes` configs in the language `config.toml`

Antonio Scandurra created

04c7989 Extract a `LanguageConfig` and load it from `language-dir/config.toml`

Antonio Scandurra created

5485c1a Add test for font selection

Antonio Scandurra created

9642e9b Honor `italic` in syntax themes

Antonio Scandurra created

e0cb5cc Honor `bold` in syntax themes

Antonio Scandurra created

ab64f2d Update tree-sitter

Antonio Scandurra created

c80812c Add a few more rust highlighting patterns

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

5d2ac3f Use new Tree-sitter captures API

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Max Brunsfeld and Nathan Sobo created

43ddb6f WIP: Push failing test for `DisplayMap::highlighted_chunks_at`

Antonio Scandurra created

2e7593d :lipstick:

Antonio Scandurra created

bafac35 Reparse if syntax tree is up-to-date but in an interpolated state

Antonio Scandurra created

aeb6886 Move `highlighted_text_in_range` from `Buffer` to `buffer::Snapshot`

Antonio Scandurra created

e54a31e Bump tree-sitter for QueryCaptures::advance methods

Max Brunsfeld created

8340958 Convert query capture indices to style ids

Click to expand commit body
* Introduce a Theme struct as a new part of the app's settings
* Store on each Language a ThemeMap, which converts the capture ids
  from that language's highlight query into StyleIds, which identify
  styles in the current Theme.
* Update `highlighted_chunks` methods to provide StyleIds instead of
  capture ids.

Max Brunsfeld created