Nikita Revenco
fdd1a1c78f
refactor: remove 1 layer of nesting
2025-02-28 15:07:44 +00:00
Nikita Revenco
2a1bff5648
refactor: remove unneeded type annotation
2025-02-28 15:07:44 +00:00
Nikita Revenco
cec122e1ca
refactor: rename variable
2025-02-28 15:07:44 +00:00
Nikita Revenco
ac3722a74d
refactor: extract has_camel_transition function
2025-02-28 15:07:44 +00:00
Nikita Revenco
2c1af76fb0
refactor: do not create new function on each loop
2025-02-28 15:07:44 +00:00
Nikita Revenco
5420ef5f63
refactor: remove unneeded loop, replace with map instead
2025-02-28 15:07:44 +00:00
Nikita Revenco
d7a3ffa2d8
refactor: simplify code
2025-02-28 15:07:44 +00:00
Nikita Revenco
e073a2eb7b
refactor: rename variable
2025-02-28 15:07:44 +00:00
Nikita Revenco
ea920b82eb
docs: remove comment for consistency
2025-02-28 15:07:44 +00:00
Nikita Revenco
f8b9497dbc
feat: do not introduce breaking changes
2025-02-28 15:07:44 +00:00
Nikita Revenco
e6da544a71
refactor: variable name
2025-02-28 15:07:44 +00:00
Nikita Revenco
ef2b035e01
refactor: increase readability
...
split logic into variables and add comments
2025-02-28 15:07:44 +00:00
Nikita Revenco
d4e4049ab7
fix: add extra separator character if at camelCase boundary
2025-02-28 15:07:44 +00:00
Nikita Revenco
28b77e2ae3
fix: trim leading whitespace
2025-02-28 15:07:44 +00:00
Nikita Revenco
58177afb2a
refactor: remove complex test helper definition, use for loop instead
2025-02-28 15:07:44 +00:00
Nikita Revenco
fc199e3d8c
refactor: remove unnecessary parameter
2025-02-28 15:07:44 +00:00
Nikita Revenco
47826f53a4
refactor: better function naming
2025-02-28 15:07:44 +00:00
Nikita Revenco
1821000acd
refactor: extract common functions
2025-02-28 15:07:44 +00:00
Nikita Revenco
79d3e10c5c
refactor: title camel and pascal into a single function
2025-02-28 15:07:44 +00:00
Nikita Revenco
3414183ab6
refactor: move functon
2025-02-28 15:07:44 +00:00
Nikita Revenco
820963cb90
fix: failing test is now fixed
2025-02-28 15:07:44 +00:00
Nikita Revenco
3cab65f330
fix: ignore leading whitespaces
2025-02-28 15:07:44 +00:00
Nikita Revenco
1df5cb6c0d
fix: add separator on case change
2025-02-28 15:07:44 +00:00
Nikita Revenco
63161cee21
fix: incorrect test
2025-02-28 15:07:44 +00:00
Nikita Revenco
9047fafeae
test: comment out failing tests
2025-02-28 15:07:44 +00:00
Nikita Revenco
75cd953c30
feat: correct implementation for pascal_case and camel_case
2025-02-28 15:07:44 +00:00
Nikita Revenco
ff8c1df71d
feat: correct implementations for kebab, snake and title case
2025-02-28 15:07:44 +00:00
Nikita Revenco
f1cf46f022
feat: better implementation of title_case
2025-02-28 15:07:44 +00:00
Nikita Revenco
c1be961b93
feat: implementations for kebab case and snake case
2025-02-28 15:07:44 +00:00
Nikita Revenco
42e150293a
feat: `switch_to_title_case`
2025-02-28 15:07:44 +00:00
Nikita Revenco
63f82c7bfa
feat: 5 functions to change case, lower, alternate, upper, pascal & camel
2025-02-28 15:07:44 +00:00
Michael Davis
0efa8207d8
Rewrite command line parsing, add flags and expansions ( #12527 )
...
Co-authored-by: Pascal Kuthe <pascalkuthe@pm.me>
2025-02-26 19:50:15 -06:00
dependabot[bot]
48194825b9
build(deps): bump the rust-dependencies group with 3 updates ( #12903 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-17 17:36:50 -06:00
Michael Davis
ed3bc2b294
Remove unused dependencies
...
The dependabot file was matching on tree-sitter crates - that's a relic
from v0.6.0 and lower where grammars were regular dependencies.
The remaining changes are unused crates that were forgotten about during
shuffles like moving path canonicalization from helix-core to
helix-loader (and then again from helix-loader to helix-stdx).
2025-02-13 08:41:46 -05:00
Niklas Wallgren
1258111394
Print full error chain when failing to load grammar ( #12744 )
2025-02-04 08:18:54 -06:00
dependabot[bot]
8995ccaae2
build(deps): bump the rust-dependencies group with 4 updates ( #12766 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-03 17:37:46 -06:00
Michael Davis
5952d564d1
Reverse highlight precedence ordering ( #9458 )
...
Co-authored-by: postsolar <120750161+postsolar@users.noreply.github.com>
Co-authored-by: Iorvethe <58810330+Iorvethe@users.noreply.github.com>
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Co-authored-by: gabydd <gabydinnerdavid@gmail.com>
2025-02-02 18:17:10 -06:00
Michael Davis
70d452db3e
core: Make completion item documentation optional
...
Path completion items always have documentation but future core (i.e.
non-LSP) completions may not always have documentation - for example
word completion from the current buffer.
2025-02-01 21:24:25 -05:00
Pascal Kuthe
018081a5b1
core: Add a provider type to track the origin of a completion
2025-02-01 19:32:37 -05:00
rhogenson
17ffa38a5a
Use the first char in a grapheme for classification ( #12483 )
...
Co-authored-by: Rose Hogenson <rosehogenson@posteo.net>
2025-02-01 17:09:45 -06:00
RoloEdits
025719c1d8
perf(ropey): enable `simd` feature for `stdx` ( #12735 )
2025-01-30 19:51:34 -05:00
Michael Davis
20151a5594
Move rope grapheme iterators from core to stdx
2025-01-27 09:24:40 -05:00
Michael Davis
51832b02c9
core: Remove unused byte index grapheme functions
2025-01-27 09:24:40 -05:00
Michael Davis
39b72329b4
stdx: Add floor/ceil/is grapheme boundary functions to RopeSliceExt
...
These functions are the equivalent of 23b424a46
for grapheme clusters.
In order to add the `is_grapheme_boundary` function we also need to
query whether a byte index lies on a character boundary, so this change
also adds `is_char_boundary`.
2025-01-27 09:24:40 -05:00
RoloEdits
4ded712dbd
perf(syntax): short-circuit if name matches `language_id` ( #12407 )
2025-01-23 17:49:14 -06:00
Rolo
650af50c13
fix: typos
2025-01-23 15:18:16 -05:00
Rolo
c1d382a532
fix(lints): clippy 1.84
2025-01-23 15:18:16 -05:00
Nikita Revenco
168b11e091
feat: passing multile of the same files in the arguments places a cursor at each position ( #12192 )
...
Co-authored-by: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com>
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-01-23 14:04:02 -06:00
Michael Davis
cb0f201d0e
snippets: Discard placeholder text for the `$0` tabstop
2025-01-23 09:50:19 -05:00
Michael Davis
032dadaf37
snippets: Add a test case for parsing `${0:placeholder}`
...
This is an example snippet sent by older versions of clangd.
2025-01-23 09:50:19 -05:00