Nik Revenco
77a74feb24
feat: solve merge conflicts and make tests more modular
2025-05-14 18:33:05 +01:00
Nik Revenco
d0ca96c566
Merge branch 'master' into determine-comment-tokens
2025-05-14 17:07:54 +01:00
Michael Davis
aea53523dd
Replace tree-sitter with tree-house
2025-05-13 18:43:43 -04:00
Michael Davis
24e3ccc31b
Add the `syn_loader` to `Document`
...
This type also exists on `Editor`. This change brings it to the
`Document` as well because the replacement for `Syntax` in the child
commits will eliminate `Syntax`'s copy of `syn_loader`. `Syntax` will
also be responsible for returning the highlighter and query iterators
(which will borrow the loader), so the loader must be separated from
that type.
In the long run, when we make a larger refactor to have
`Document::apply` be a function of the `Editor` instead of the
`Document`, we will be able to drop this field on `Document` - it is
currently only necessary for `Document::apply`. Once we make that
refactor, we will be able to eliminate the surrounding `Arc` in
`Arc<ArcSwap<syntax::Loader>>` and use the `ArcSwap` directly instead.
2025-05-13 18:30:21 -04:00
Michael Davis
c94fde8d1c
syntax: Move config types to a separate module
2025-05-13 18:30:21 -04:00
RoloEdits
47547e94ad
perf(statusline): reorder match and specify `u32` for `workspace_diagnostics` ( #13512 )
2025-05-12 08:27:04 -05:00
Daniel Bowring
69b9db2fbb
Add goto_column and extend_to_column commands ( #13440 )
2025-05-01 09:12:30 -05:00
Joffrey Bluthé
949d9e4433
feat: give formatters access to filename ( #13429 )
...
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-04-28 17:34:05 -05:00
Sumandora
99b57181d5
Improve auto completion for shell commands ( #12883 )
...
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-04-27 14:04:56 -05:00
dependabot[bot]
0815b52e09
build(deps): bump libc in the rust-dependencies group ( #13389 )
2025-04-22 15:10:48 +09:00
RoloEdits
d24e4fcf0f
feat(config): add `[workspace-]diagnostics` fields to statusline ( #13288 )
2025-04-08 13:58:14 -05:00
dependabot[bot]
5d16aae58e
build(deps): bump the rust-dependencies group across 1 directory with 5 updates ( #13301 )
...
Bumps the rust-dependencies group with 5 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [smallvec](https://github.com/servo/rust-smallvec ) | `1.14.0` | `1.15.0` |
| [tokio](https://github.com/tokio-rs/tokio ) | `1.44.1` | `1.44.2` |
| [rustix](https://github.com/bytecodealliance/rustix ) | `1.0.3` | `1.0.5` |
| [indexmap](https://github.com/indexmap-rs/indexmap ) | `2.8.0` | `2.9.0` |
| [cc](https://github.com/rust-lang/cc-rs ) | `1.2.17` | `1.2.18` |
Updates `smallvec` from 1.14.0 to 1.15.0
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.14.0...v1.15.0 )
Updates `tokio` from 1.44.1 to 1.44.2
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.44.1...tokio-1.44.2 )
Updates `rustix` from 1.0.3 to 1.0.5
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGES.md )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v1.0.3...v1.0.5 )
Updates `indexmap` from 2.8.0 to 2.9.0
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/main/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.8.0...2.9.0 )
Updates `cc` from 1.2.17 to 1.2.18
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.17...cc-v1.2.18 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-version: 1.15.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: tokio
dependency-version: 1.44.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: rustix
dependency-version: 1.0.5
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
- dependency-name: indexmap
dependency-version: 2.9.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: rust-dependencies
- dependency-name: cc
dependency-version: 1.2.18
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: rust-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-07 21:33:46 -05:00
Jason Fuchs
46f7cdb5a9
feat: add ! alias for sh and | for pipe ( #13263 )
2025-04-08 01:00:45 +09:00
Dimitri Sabadie
29789f2a9f
Add support for extend_file_{start,end} ( #11767 )
2025-04-06 13:18:47 -05:00
Rolo
1bc45c8b3a
refactor: change empty check to `is_empty` instead of `len > 0`
2025-04-06 12:03:14 -05:00
RoloEdits
01fce51c45
fix(keymap): point to proper `MappableCommand` instead of `Command` ( #13214 )
2025-03-28 08:51:36 -05:00
Keir Lawson
7929c0719d
Track progress title an display in place of internal token ( #13180 )
...
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-03-27 12:00:23 -05:00
Nikita Revenco
d09f7730ec
feat: fix merge conflicts
2025-03-25 14:41:27 +00:00
Nikita Revenco
f8a38a1229
fix: crash when using block comment if no block comment but yes line comment
2025-03-25 14:41:27 +00:00
Nikita Revenco
c3829c3d91
fix: call geter instead of trying to access private field
2025-03-25 14:41:27 +00:00
Nikita Revenco
4c5ceb5bed
test: add test for continuing comment in injection layers
2025-03-25 14:41:27 +00:00
Nikita Revenco
c72755437a
feat: continue comment uses injected comment tokens
2025-03-25 14:41:27 +00:00
Nikita Revenco
5b30bfe36e
fix: YAML formatting issues with injections
2025-03-25 14:41:27 +00:00
Nikita Revenco
4bb33459fa
feat: improve presentation of tree-sitter-injections
2025-03-25 14:41:27 +00:00
Nikita Revenco
37f8cbed3c
feat: upgrade `tree-sitter-injection` to show injections for entire file
2025-03-25 14:41:27 +00:00
Nikita Revenco
d451077978
feat: add typable command to get injection layer for current range
2025-03-25 14:41:27 +00:00
Nikita Revenco
99d16170dc
fix: commenting full lines
2025-03-25 14:41:27 +00:00
Nikita Revenco
7d53290dd2
fix: panic
2025-03-25 14:41:27 +00:00
Nikita Revenco
e9683381b6
refactor: extract a separate toggle_comment_impl function
2025-03-25 14:41:27 +00:00
Nikita Revenco
093805b62c
perf: get rid of a `.clone()`
2025-03-25 14:41:27 +00:00
Nikita Revenco
63fb49c1b4
chore: clean up code
...
chore: remove comment
2025-03-25 14:41:27 +00:00
Nikita Revenco
3714fc0cee
chore: remove unused imports
2025-03-25 14:41:27 +00:00
Nikita Revenco
c22eba38d5
chore: move all comment integration tests into a separate module
2025-03-25 14:41:27 +00:00
Nikita Revenco
570911e589
fix: many single width selections panic
2025-03-25 14:41:27 +00:00
Nikita Revenco
ee0f22471e
chore: add brainstorm thoughts
2025-03-25 14:41:27 +00:00
Nikita Revenco
13b52e9d97
refactor: rename variables ,use iterator methods, separate vars for added and removed chars
2025-03-25 14:41:27 +00:00
Nikita Revenco
bbd7cb7bfb
fix: incorrect order of index additions
2025-03-25 14:41:27 +00:00
Nikita Revenco
76b3e6778d
chore: remove log statement
2025-03-25 14:41:27 +00:00
Nikita Revenco
31e2f739ee
fix: panic as no ranges were inserted
2025-03-25 14:41:27 +00:00
Nikita Revenco
b94d3a70e7
fix: multiple selections having incorrect range and not properly accounting for comment tokens
2025-03-25 14:41:27 +00:00
Nikita Revenco
621dec74be
test: write more tests for toggle comment, and add tests for toggle block comment
2025-03-25 14:41:27 +00:00
Nikita Revenco
7c24110061
feat: add integration tests for commenting through injection layers
2025-03-25 14:41:27 +00:00
Nikita Revenco
0a882107ed
fix: restore selections when created comment
2025-03-25 14:41:27 +00:00
Nikita Revenco
de7884c7dd
test: uncomment previosly skipped tests
2025-03-25 14:41:27 +00:00
Nikita Revenco
371dec3774
feat: block comment toggle and single line comment toggle
2025-03-25 14:41:27 +00:00
Nikita Revenco
544e460ac4
feat: implement toggle comment funcitonality for multiple comment tokens
2025-03-25 14:41:27 +00:00
Nikita Revenco
29e0a00eb0
feat: implement toggle comment for the simplest case
2025-03-25 14:41:27 +00:00
Nikita Revenco
d719f1572b
feat: gain access to injection-specific line and block comment tokens
2025-03-25 14:41:27 +00:00
Nikita Revenco
b10fc21169
chore: clean up code
2025-03-25 14:41:27 +00:00
Nikita Revenco
8fe3f90cbb
feat: use FnMut
2025-03-25 14:41:27 +00:00