Commit Graph

836 Commits (ed80c33ad1403dd5a0f46b93bd09a1f95000aed8)

Author SHA1 Message Date
Nik Revenco ed80c33ad1 style: fmt 2025-03-25 18:41:52 +00:00
Nik Revenco d6c067106a docs: add documentation comments 2025-03-25 17:49:03 +00:00
Nik Revenco 13fa575429 test: improved test syntax
_

_

_
2025-03-25 17:33:35 +00:00
Nik Revenco b0251ef715 feat: `switch_to_sentence_case` (`` `S ``)
_
2025-03-25 16:26:09 +00:00
Nik Revenco 2cc5222226 refactor: remove unused function 2025-03-25 16:06:47 +00:00
Nik Revenco bf788f5f00 fix: use `to_{uppercase,lowercase}` instead of `to_ascii*`variants 2025-03-25 16:04:35 +00:00
Nik Revenco fd83cf7870 refactor: use macro to create functional versions of case converters 2025-03-25 15:56:37 +00:00
Nikita Revenco 90884f0588 fix: use char::to_{lower_uppercase} instead of their ascii variants 2025-02-28 15:19:25 +00:00
Nikita Revenco 917e8057dc fix: remove extra allocs from alternate case impl 2025-02-28 15:16:25 +00:00
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
Niklas Wallgren 1258111394
Print full error chain when failing to load grammar (#12744) 2025-02-04 08:18:54 -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
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
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