| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add treesitter textobject queries
Only for Go, Python and Rust for now.
* Add tree-sitter textobjects
Only has functions and class objects as of now.
* Fix tests
* Add docs for tree-sitter textobjects
* Add guide for creating new textobject queries
* Add parameter textobject
Only parameter.inside is implemented now, parameter.around
will probably require custom predicates akin to nvim' `make-range`
since we want to select a trailing comma too (a comma will be
an anonymous node and matching against them doesn't work similar
to named nodes)
* Simplify TextObject cell init
|
| |
|
|
|
|
|
|
| |
The styles are now pulled from upstream styles, some of the changes I
submitted it back to upstream.
Fix #796
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#807)
* allow language.config (in languages.toml) to be passed in as a toml object
* Change config field for languages from json string to toml object
* remove indents on languages.toml config
* fix: remove patch version from serde_json import in helix-core
* Use same tree-sitter-zig as upstream/master
|
|
|
|
|
|
| |
This allows removing search matches from the selection
Fixes #713
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
0.20 includes querying improvements, we no longer have to convert
fragments to strings but can return an iterator of chunks instead.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
generic TOML value merge function (#654)
* feat: merge default languages.toml with user provided languages.toml
* refactor: use catch-all to override all other values for merge toml
* tests: add a test case for merging languages configs
* refactor: change test module name
|
| |
|
|
|
|
| |
This is a legacy type that should be fully removed.
|
| |
|
| |
|
|
|
|
|
| |
Fixes #591
Co-authored-by: Cor Peters <luctius@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Particularly the effect of the `limit_before_line_ending`
parameter.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix around-word text-object selection.
* Text object around-word: select to the left if no whitespace on the right.
Also only select around when there's whitespace at all.
* Make select-word-around select all white space on a side.
* Update commented-out test case.
* Fix unused import warning from rebase.
|
|
|
|
| |
Fixes #543.
|
| |
|
|
|
|
| |
It's no longer practical to maintain. Closes #451
|
| |
|
| |
|
|
|
|
| |
Rather than per-command like before.
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| | |
Fix #492
|
| |
| |
| |
| |
| | |
Implementation is similar to kakoune: we store the entries into
a register.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Implement `margin` calculation for uncommenting
* Move `margin` calculation to `find_line_comment`
* Fix comment bug with multiple selections on a line
* Fix `find_line_comment` test for new return type
* Generate a single vec of lines for comment toggle
`toggle_line_comments` collects the lines covered by all selections into
a `Vec`, skipping duplicates. `find_line_comment` now returns the lines
to operate on, instead of returning the lines to skip.
* Fix test for `find_line_comment`
* Reserve length of `to_change` instead of `lines`
The length of `lines` includes blank lines which will be skipped, and as
such do not need space for a change reserved for them. `to_change`
includes only the lines which will be changed.
* Use `token.chars().count()` for token char length
* Create `changes` with capacity instead of reserving
* Remove unnecessary clones in `test_find_line_comment`
* Add test case for 0 margin comments
* Add comments explaining `find_line_comment`
|
| | |
|
| | |
|
| |
| |
| |
| | |
Also fix a bunch of bugs related to it.
|
|\| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fixed warning:
```
warning: the item `fmt` is imported redundantly
--> helix-core/src/syntax.rs:98:9
|
16 | fmt,
| --- the item `fmt` is already imported here
...
98 | use std::fmt;
| ^^^^^^^^
|
```
|
| | |
|
| | |
|
| |
| |
| |
| | |
Still needs to be done, but should be part of a separate PR.
|
| | |
|
| | |
|
| | |
|
| | |
|